Package net.sf.saxon.tree.jiter
Class MappingJavaIterator<S,T>
java.lang.Object
net.sf.saxon.tree.jiter.MappingJavaIterator<S,T>
- Type Parameters:
S
- the type of the input itemsT
- the type of the delivered item
- All Implemented Interfaces:
Iterator<T>
A Java Iterator which applies a mapping function to each item in an input sequence
-
Constructor Details
-
MappingJavaIterator
Create a mapping iterator- Parameters:
in
- the input sequencemapper
- the mapping function to be applied to each item in the input sequence to generate the corresponding item in the result sequence. If the mapping function returns null for a particular input, the item is omitted from the result sequence.
-
-
Method Details