public interface Collection_To_FirstElement<T> extends IsTransformer<Collection<T>,T>
Takes a collection of things and returns the first non-null element of it.
| Modifier and Type | Method and Description |
|---|---|
static <T> Collection_To_FirstElement<T> |
create()
Creates a new transformer.
|
default T |
transform(Collection<T> collection)
Transforms from one representation to another.
|
apply, transformdefault T transform(Collection<T> collection)
TransformerTransforms from one representation to another.
transform in interface Transformer<Collection<T>,T>collection - input representationstatic <T> Collection_To_FirstElement<T> create()
Creates a new transformer.
T - type for objects in the collectionCopyright © 2016–2017. All rights reserved.