OriginalType - The original type of the values iterated by the decorated Iterator.ResultType - The type of the values iterated by this Iterator.public final class Mapped<OriginalType,ResultType> extends AbstractBaseIterator<ResultType>
| Constructor and Description |
|---|
Mapped(Function<OriginalType,ResultType> mapFunction,
java.util.Iterator<OriginalType> original)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
ResultType |
next() |
equals, hashCode, removepublic Mapped(Function<OriginalType,ResultType> mapFunction, java.util.Iterator<OriginalType> original)
Mapped Iterator that iterates the elements of the given Iterator after mapping
them using the given Function.mapFunction - The Function to apply to all elements.original - The Iterator to be mapped.public final boolean hasNext()
public final ResultType next()