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