S
- the type of the input itemsT
- the type of the delivered itempublic class MappingJavaIterator<S,T>
extends java.lang.Object
implements java.util.Iterator<T>
Constructor and Description |
---|
MappingJavaIterator(java.util.Iterator<S> in,
java.util.function.Function<S,T> mapper)
Create a mapping iterator
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public MappingJavaIterator(java.util.Iterator<S> in, java.util.function.Function<S,T> mapper)
in
- the input sequencemapper
- the mapping function to be applied to each item in the ipnut sequence to
generate the corresponding item in the result sequenceCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.