ResultType - The type of the values iterated by this Iterator.OriginalType - The original type of the values iterated by the decorated Iterator.Mapped, to be removed in version 2.0.@Deprecated public final class ConvertedIterator<ResultType,OriginalType> extends AbstractConvertedIterator<ResultType,OriginalType>
Iterator that converts the elements of another Iterator using a Converter before returning
them.AbstractConvertedIterator.Converter<ResultType,OriginalType>| Constructor and Description |
|---|
ConvertedIterator(java.util.Iterator<OriginalType> iterator,
AbstractConvertedIterator.Converter<ResultType,OriginalType> converter)
Deprecated.
Creates a converting
Iterator that iterates the elements of the given Iterator after converting
them using the given Converter. |
hasNext, nextequals, hashCode, removepublic ConvertedIterator(java.util.Iterator<OriginalType> iterator, AbstractConvertedIterator.Converter<ResultType,OriginalType> converter)
Iterator that iterates the elements of the given Iterator after converting
them using the given Converter.iterator - The Iterator to be converted.converter - The Converter.