public abstract class IndirectIndexable<E> extends AbstractSequence<E> implements Sequence<E>
Modifier and Type | Field and Description |
---|---|
static Range.IntRange |
cantWriteMarker |
protected IntSequence |
indexes |
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE
Constructor and Description |
---|
IndirectIndexable() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkCanWrite() |
abstract int |
getBufferLength() |
protected IntSequence |
getIndexesForce() |
protected IntSequence |
indexesSelect(IntSequence selected) |
protected IntSequence |
indexesSubList(int fromIx,
int toIx) |
protected boolean |
isAfterPos(int ipos)
Tests whether the position has the "isAfter" property.
|
int |
nextPos(int ipos)
Return the next position following the argument.
|
IndirectIndexable<E> |
select(IntSequence indexes) |
int |
size()
See java.util.List.
|
IndirectIndexable<E> |
subList(int fromIx,
int toIx) |
protected abstract IndirectIndexable<E> |
withIndexes(IntSequence ind)
Create a new instance with the same data and replaces indexes.
|
add, add, addAll, addAll, addPos, boundedHash, clear, compare, compare, compare, consume, consume, consumeNext, consumePosRange, contains, containsAll, copyPos, createPos, createRelativePos, elements, endPos, equals, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setPosNext, setPosPrevious, stableCompare, startPos, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, toArray, toArray
consume
boundedHash
protected IntSequence indexes
public static final Range.IntRange cantWriteMarker
public int size()
AbstractSequence
public abstract int getBufferLength()
protected void checkCanWrite()
protected IntSequence getIndexesForce()
protected abstract IndirectIndexable<E> withIndexes(IntSequence ind)
protected IntSequence indexesSelect(IntSequence selected)
protected IntSequence indexesSubList(int fromIx, int toIx)
public IndirectIndexable<E> select(IntSequence indexes)
public IndirectIndexable<E> subList(int fromIx, int toIx)
subList
in interface java.util.List<E>
subList
in class AbstractSequence<E>
protected boolean isAfterPos(int ipos)
AbstractSequence
isAfterPos
in class AbstractSequence<E>
public int nextPos(int ipos)
AbstractSequence
nextPos
in class AbstractSequence<E>