E
- the type of the elementsS
- the type of transformed elementspublic class TransformIterable<E,S>
extends java.lang.Object
implements java.lang.Iterable<S>
TransformIterable
converts any type of Iterable to another type by
given TransformBlock
.Constructor and Description |
---|
TransformIterable(java.lang.Iterable<? extends E> iter,
TransformBlock<? super E,? extends S> block)
Creates a
TransformIterable . |
public TransformIterable(java.lang.Iterable<? extends E> iter, TransformBlock<? super E,? extends S> block)
TransformIterable
.iter
- an Iterableblock
- to transform elementsjava.lang.NullPointerException
- if iter or block is null