Package | Description |
---|---|
org.alfresco.util.collections |
Modifier and Type | Interface and Description |
---|---|
interface |
EntryTransformer<FK,FV,TK,TV> |
interface |
Filter<F> |
Modifier and Type | Field and Description |
---|---|
static Function<Object,String> |
CollectionUtils.TO_STRING_TRANSFORMER |
Modifier and Type | Method and Description |
---|---|
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 <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 <FK,FV,TK,TV> |
CollectionUtils.transform(Map<FK,FV> map,
Function<Map.Entry<FK,FV>,Pair<TK,TV>> 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)
|
static <F,T> Map<F,T> |
CollectionUtils.transformToMap(Collection<F> values,
Function<F,T> transformer) |
Copyright © 2005–2020 Alfresco Software. All rights reserved.