static <T> List<T> |
CollectionUtils.filter(Collection<T> values,
Function<? super T,Boolean> filter) |
Returns a filtered List of values.
|
static <K,V> Map<K,V> |
CollectionUtils.filterKeys(Map<K,V> map,
Function<? super K,? extends Boolean> filter) |
This method can be used to filter a Map.
|
static <T> T |
CollectionUtils.findFirst(Collection<T> values,
Function<? super T,Boolean> acceptor) |
Finds the first value for which acceptor returns true .
|
static <F,T> List<T> |
CollectionUtils.transform(Collection<F> values,
Function<? super F,? extends T> transformer) |
|
static <FK,FV,TK,TV> Map<TK,TV> |
CollectionUtils.transform(Map<FK,FV> map,
Function<Map.Entry<FK,FV>,Pair<TK,TV>> transformer) |
|
static <F,T> List<T> |
CollectionUtils.transform(Function<? super F,? extends T> transformer,
F... values) |
|
static <F,T> List<T> |
JsonUtils.transform(org.json.JSONArray values,
Function<F,? extends T> transformer) |
|
static <F,T> List<T> |
CollectionUtils.transformFlat(Collection<F> values,
Function<? super F,? extends Collection<? extends T>> transformer) |
|
static <F,T,V> Map<T,V> |
CollectionUtils.transformKeys(Map<F,V> map,
Function<? super F,? extends T> transformer) |
Converts a Map having keys of type F to a new Map instance having keys of type T.
|
static <F,T> Map<F,T> |
CollectionUtils.transformToMap(Collection<F> values,
Function<F,T> transformer) |
|