public class BLCCollectionUtils extends Object
Constructor and Description |
---|
BLCCollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Collection<T> |
collect(Collection inputCollection,
TypedTransformer<T> transformer)
Delegates to
CollectionUtils.collect(Collection, Transformer) , but performs the necessary type coercion
to allow the returned collection to be correctly casted based on the TypedTransformer. |
static <T> List<T> |
selectList(Collection<T> inputCollection,
TypedPredicate<T> predicate)
Delegates to
CollectionUtils.select(Collection, org.apache.commons.collections.Predicate) , but will
force the return type to be a List |
public static <T> Collection<T> collect(Collection inputCollection, TypedTransformer<T> transformer)
CollectionUtils.collect(Collection, Transformer)
, but performs the necessary type coercion
to allow the returned collection to be correctly casted based on the TypedTransformer.inputCollection
- transformer
- public static <T> List<T> selectList(Collection<T> inputCollection, TypedPredicate<T> predicate)
CollectionUtils.select(Collection, org.apache.commons.collections.Predicate)
, but will
force the return type to be a ListinputCollection
- predicate
- Copyright © 2014. All rights reserved.