|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.lists.AbstractSequence gnu.lists.TreeList gnu.mapping.Values gnu.kawa.xml.Nodes gnu.kawa.xml.SortedNodes
public class SortedNodes
Manages a sequence of node references in document order without duplicates. All elements are POSITION_PAIR_FOLLOWS elements, which makes operations simple and efficient. The most recently added element is just before the gap. Optimized for the data being in order, or at least having good locality (a node being "near" the previously-entered node).
Field Summary |
---|
Fields inherited from class gnu.mapping.Values |
---|
empty, noArgs |
Constructor Summary | |
---|---|
SortedNodes()
|
Method Summary | |
---|---|
void |
writePosition(AbstractSequence seq,
int ipos)
Consume a single position pair. |
Methods inherited from class gnu.kawa.xml.Nodes |
---|
append, beginEntity, endAttribute, endDocument, endElement, endEntity, find, get, getLength, getPos, getPosNext, getSeq, root, size, startAttribute, startDocument, startElement, write, write, write, write, writeBoolean, writeCDATA, writeComment, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeProcessingInstruction |
Methods inherited from class gnu.mapping.Values |
---|
call_with, canonicalize, countValues, getValues, make, make, make, make, make, nextIndex, nextValue, print, readExternal, readResolve, values$V, writeExternal, writeValues |
Methods inherited from class gnu.lists.AbstractSequence |
---|
add, add, addAll, addAll, addPos, compare, compare, contains, containsAll, copyPos, elements, endPos, equals, equals, fill, fill, fillPosRange, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIterator, getIterator, getIteratorAtPos, getLowBound, getSize, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isAfterPos, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SortedNodes()
Method Detail |
---|
public void writePosition(AbstractSequence seq, int ipos)
PositionConsumer
writePosition
in interface PositionConsumer
writePosition
in class Nodes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |