F
- the source class of the conversion, i.e. the class of objects returned by the encapsulated iteratorT
- the destination class of the conversion, i.e. the class of objects returned by this iteratorpublic class ConvertorIterator<F,T>
extends java.lang.Object
implements java.util.Iterator<T>
Constructor and Description |
---|
ConvertorIterator(java.util.Iterator<? extends F> iterator,
Convertor<? super F,? extends T> convertor)
Creates a new iterator converts all objects from the encapsulated iterator.
|
public ConvertorIterator(java.util.Iterator<? extends F> iterator, Convertor<? super F,? extends T> convertor)
iterator
- the encapsulated iterator that provides the objects to convertconvertor
- the convertor to apply to iterated items