ResultType - The type of the values iterated by this Iterator.OriginalType - The original type of the values iterated by the decorated Iterator.public abstract class AbstractConvertedIterator<ResultType,OriginalType> extends AbstractBaseIterator<ResultType>
Iterator that converts the elements of another Iterator using a AbstractConvertedIterator.Converter before returning them.| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractConvertedIterator.Converter<ResultType,OriginalType> |
| Constructor and Description |
|---|
AbstractConvertedIterator(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 AbstractConvertedIterator.Converter. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
ResultType |
next() |
removepublic AbstractConvertedIterator(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 AbstractConvertedIterator.Converter.iterator - The Iterator to be converted.converter - The AbstractConvertedIterator.Converter.public final boolean hasNext()
public final ResultType next()