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>
Modifier and Type | Class and Description |
---|---|
static interface |
MappingJavaIterator.Mapper<S,T>
Interface defining the mapping function
|
Constructor and Description |
---|
MappingJavaIterator(java.util.Iterator<S> in,
MappingJavaIterator.Mapper<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, MappingJavaIterator.Mapper<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-2018 Saxonica Limited. All rights reserved.