ResultType - The type of the values iterated by this Iterator.OriginalType - The original type of the values iterated by the decorated Iterator.public 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)
Creates a converting
Iterator that iterates the elements of the given Iterator after converting them using the given Converter. |
hasNext, nextremovepublic 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.