public abstract class ListIterator extends java.lang.Object implements SequenceIterator, LastPositionFinder, LookaheadIterator, GroundedIterator, ReversibleIterator
Note: There are three subclasses: ListIterator, which takes a general list of items,
NodeListIterator, which takes a list of nodes, and AtomicListIterator, which takes
a list of atomic values. It might seem simpler to implement this entirely using generics, but that
design proves very difficult to translate to C#, where generics behave very differently. With this approach
the generics are confined to this abstract class.
| Modifier and Type | Class and Description |
|---|---|
static class |
ListIterator.Of<T extends Item> |
static class |
ListIterator.OfAtomic<A extends AtomicValue>
ListIterator.OfAtomic is a subclass of ListIterator where the list always
contains atomic values; it therefore implements the AtomicIterator interface.
|
| Constructor and Description |
|---|
ListIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsHasNext()
Ask whether the hasNext() method can be called.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, supportsGetLengthhasNextgetResidue, isActuallyGrounded, materializegetReverseIteratorclose, discharge, nextpublic boolean supportsHasNext()
LookaheadIteratorsupportsHasNext in interface LookaheadIteratorLookaheadIterator.hasNext() method is availableCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.