public class RAPair extends ImmutablePair
Modifier and Type | Class and Description |
---|---|
static class |
RAPair.Node |
Modifier and Type | Field and Description |
---|---|
int |
size |
car, cdr, incompleteListMarker
noInts
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 |
---|
RAPair(int size,
java.lang.Object tree,
java.lang.Object rest) |
Modifier and Type | Method and Description |
---|---|
static RAPair |
cons(java.lang.Object x,
java.lang.Object ls) |
java.lang.Object |
get(int i)
See java.util.List.
|
java.lang.Object |
getCar() |
java.lang.Object |
getCdr() |
java.lang.Object |
getRest() |
java.lang.Object |
getTree() |
static java.lang.Object |
listRef(RAPair ls,
int i) |
static int |
raLength(java.lang.Object ls) |
static LList |
raList(java.lang.Object[] xs) |
int |
size()
See java.util.List.
|
static java.lang.Object |
treeRef(int size,
java.lang.Object t,
int i) |
static java.lang.Object |
treeRefA(java.lang.Object t,
int i,
int mid) |
setCar, setCdr
compareTo, compareTo, equals, equals, getPosNext, getPosPrevious, hasNext, isEmpty, lastPair, length, make, nextPos, readExternal, readResolve, setCarBackdoor, setCdrBackdoor, toArray, toArray, writeExternal
boundedHash, chain1, chain4, checkNonList, consume, consX, createPos, createRelativePos, getIterator, hashCode, length, list1, list2, list3, list4, listLength, makeList, makeList, makeList, reverseInPlace, setPosNext, setPosPrevious, toString
copyPos, isAfterPos, nextIndex, releasePos
add, add, addAll, addAll, addPos, asImmutable, badRank, checkCanWrite, checkRank, clear, compare, compare, compare, consume, consumeNext, consumePosRange, contains, containsAll, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getCharRaw, getContainingSequenceSize, getDoubleRaw, getElementKind, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getRaw, getRowMajor, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasPrevious, indexOf, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setRaw, stableCompare, startPos, subList, subSequence, subSequencePos, toString, unsupported, unsupportedException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public java.lang.Object getTree()
public java.lang.Object getRest()
public static java.lang.Object treeRef(int size, java.lang.Object t, int i)
public static java.lang.Object treeRefA(java.lang.Object t, int i, int mid)
public static java.lang.Object listRef(RAPair ls, int i)
public java.lang.Object get(int i)
Sequence
public static RAPair cons(java.lang.Object x, java.lang.Object ls)
public static LList raList(java.lang.Object[] xs)
public static int raLength(java.lang.Object ls)
public int size()
Sequence