Class SingleAtomicIterator<T extends AtomicValue>
java.lang.Object
net.sf.saxon.tree.iter.SingletonIterator<T>
net.sf.saxon.tree.iter.SingleAtomicIterator<T>
- All Implemented Interfaces:
Closeable, AutoCloseable, LastPositionFinder, SequenceIterator, AtomicIterator<T>, GroundedIterator, LookaheadIterator, ReversibleIterator, UnfailingIterator
public class SingleAtomicIterator<T extends AtomicValue>
extends SingletonIterator<T>
implements AtomicIterator<T>, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
SingletonIterator: an iterator over a sequence of zero or one values
-
Nested Class Summary
Nested classes/interfaces inherited from interface SequenceIterator
SequenceIterator.Property -
Field Summary
Fields inherited from class SingletonIterator
gone -
Constructor Summary
ConstructorsConstructorDescriptionSingleAtomicIterator(T value) Private constructor: external classes should use the factory method -
Method Summary
Modifier and TypeMethodDescriptionGet a new SequenceIterator that returns the same items in reverse order.Methods inherited from class SingletonIterator
getLength, getProperties, getResidue, getValue, hasNext, makeIterator, materialize, next, rawIteratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AtomicIterator
nextMethods inherited from interface GroundedIterator
getResidue, materializeMethods inherited from interface LastPositionFinder
getLengthMethods inherited from interface LookaheadIterator
hasNextMethods inherited from interface SequenceIterator
close, forEachOrFail, getPropertiesMethods inherited from interface UnfailingIterator
forEach, toList
-
Constructor Details
-
SingleAtomicIterator
Private constructor: external classes should use the factory method- Parameters:
value- the item to iterate over
-
-
Method Details
-
getReverseIterator
Description copied from interface:ReversibleIteratorGet a new SequenceIterator that returns the same items in reverse order. If this SequenceIterator is an AxisIterator, then the returned SequenceIterator must also be an AxisIterator.- Specified by:
getReverseIteratorin interfaceReversibleIterator- Overrides:
getReverseIteratorin classSingletonIterator<T extends AtomicValue>- Returns:
- an iterator over the items in reverse order
-