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