public final class DocumentOrderIterator extends java.lang.Object implements SequenceIterator
Constructor and Description |
---|
DocumentOrderIterator(SequenceIterator base,
java.util.Comparator<? super NodeInfo> comparer)
Iterate over a sequence in document order.
|
Modifier and Type | Method and Description |
---|---|
NodeInfo |
next()
Get the next item in the sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, discharge
public DocumentOrderIterator(SequenceIterator base, java.util.Comparator<? super NodeInfo> comparer)
base
- the input sequence to be sortedcomparer
- the comparer used for comparing node positionspublic NodeInfo next()
SequenceIterator
next
in interface SequenceIterator
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.