public interface Iterable_To_Collection extends IsTransformer<Iterable<?>,Collection<?>>
Transforms input provided by an iterable into a collection of given type.
| Modifier and Type | Method and Description |
|---|---|
static Iterable_To_Collection |
create()
Creates a new transformer.
|
default <T,S extends Collection<T>> |
transform(Iterable<T> input,
IsCollectionStrategy<S,T> strategy)
Converts an
iterable into a collection of given type. |
apply, transform, transformdefault <T,S extends Collection<T>> S transform(Iterable<T> input, IsCollectionStrategy<S,T> strategy)
Converts an iterable into a collection of given type.
T - type of the objects in the returned collectionS - type of the returned collectioninput - the iterable to convertstrategy - the strategy determining the output collection typeNullPointerException - if any argument was nullstatic Iterable_To_Collection create()
Creates a new transformer.
Copyright © 2016–2017. All rights reserved.