public abstract class ListUtils extends Object
| Constructor and Description |
|---|
ListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends IdentityIf> |
deleteList(List<T> inputList,
List<T> persList)
Deletes all occurrences of the list from the persistent storage.
|
static <T extends IdentityIf> |
deleteListById(List<String> inputIdList,
List<T> persList)
Returns the number of record deleted.
|
static <T extends IdentityIf> |
find(String id,
List<T> list)
Find and return the object with id from klass with type from document.
|
static <T extends IdentityIf> |
setId(List<T> inputList)
Sets the id if none is existent.
|
static <T extends IdentityIf> |
updateList(List<T> inputList,
List<T> persList)
Update a list.
|
public static <T extends IdentityIf> Optional<T> find(String id, List<T> list)
id - list - public static <T extends IdentityIf> List<T> setId(List<T> inputList)
inputList - public static <T extends IdentityIf> List<T> updateList(List<T> inputList, List<T> persList)
inputList - persList - public static <T extends IdentityIf> List<T> deleteList(List<T> inputList, List<T> persList)
inputList - persList - public static <T extends IdentityIf> List<T> deleteListById(List<String> inputIdList, List<T> persList)
inputIdList - persList - Copyright © 2018. All rights reserved.