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