Package net.sf.saxon.tree.jiter
Class MappingJavaIterable<S,T>
- java.lang.Object
-
- net.sf.saxon.tree.jiter.MappingJavaIterable<S,T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>
iterator()
Returns an iterator over elements of typeT
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MappingJavaIterable
public MappingJavaIterable(Iterable<S> in, Function<S,T> mapper)
Create a mapping iterable- 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.
-
-