public interface ConstrainedIterator<T extends Item> extends SequenceIterator, UnfailingIterator, ReversibleIterator, LastPositionFinder, GroundedIterator, LookaheadIterator
SequenceIterator.Property| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Get the last position (that is, the number of items in the sequence).
|
boolean |
hasNext()
Determine whether there are more items to come.
|
GroundedValue |
materialize()
Create a GroundedValue (a sequence materialized in memory) containing all the values delivered
by this SequenceIterator.
|
T |
next()
Get the next item in the sequence.
|
forEach, toListgetReverseIteratorgetResidueclose, forEachOrFail, getPropertiesboolean hasNext()
hasNext in interface LookaheadIteratorT next()
SequenceIteratornext in interface SequenceIteratornext in interface UnfailingIteratorint getLength()
LastPositionFinderSequenceIterator.Property.LAST_POSITION_FINDERgetLength in interface LastPositionFinderGroundedValue materialize()
SequenceIteratorIt is implementation-dependant whether this method consumes the SequenceIterator. (More specifically,
in the current implementation: if the iterator is backed by a GroundedValue, then that
value is returned and the iterator is not consumed; otherwise, the iterator is consumed and the
method returns the remaining items after the current position only).
materialize in interface GroundedIteratormaterialize in interface SequenceIteratorCopyright (c) 2004-2020 Saxonica Limited.