public class Range<E> extends AbstractSequence<E> implements GVector<E>
Modifier and Type | Class and Description |
---|---|
static class |
Range.IntRange |
Modifier and Type | Field and Description |
---|---|
static Range.IntRange |
zeroAndUp |
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 |
---|
Range(E start,
java.lang.Object step,
int size) |
Modifier and Type | Method and Description |
---|---|
static Range.IntRange |
downto(IntNum iistart,
IntNum iistep,
IntNum iiend,
boolean orEqual) |
E |
get(int index)
See java.util.List.
|
E |
getRaw(int index)
Given an "effective index", return element as object.
|
E |
getStart() |
java.lang.Object |
getStep() |
boolean |
isUnbounded() |
boolean |
isUnspecifiedLast() |
boolean |
isUnspecifiedStart() |
static void |
listAll(Range r) |
int |
size()
See java.util.List.
|
java.lang.String |
toString() |
static Range.IntRange |
upto(IntNum iistart,
IntNum iistep,
IntNum iiend,
boolean orEqual) |
add, add, addAll, addAll, addPos, asImmutable, badRank, boundedHash, checkCanWrite, checkRank, clear, compare, compare, compare, consume, consume, consumeNext, consumePosRange, contains, containsAll, copyPos, createPos, createRelativePos, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, 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, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getRowMajor, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isAfterPos, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, nextPos, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setPosNext, setPosPrevious, setRaw, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asImmutable, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, get, get, get, get, getBooleanRaw, getByteRaw, getCharRaw, getDoubleRaw, getElementKind, getFloatRaw, getInt, getInt, getInt, getInt, getInt, getIntRaw, getLongRaw, getLowBound, getRowMajor, getShortRaw, getSize, getSize, isEmpty, rank, set, setRaw
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
consume
boundedHash
public static final Range.IntRange zeroAndUp
public Range(E start, java.lang.Object step, int size)
public E getStart()
public java.lang.Object getStep()
public E getRaw(int index)
Array
public int size()
Sequence
public boolean isUnbounded()
public boolean isUnspecifiedStart()
public boolean isUnspecifiedLast()
public static void listAll(Range r)
public java.lang.String toString()
toString
in class AbstractSequence<E>
public static Range.IntRange upto(IntNum iistart, IntNum iistep, IntNum iiend, boolean orEqual)
public static Range.IntRange downto(IntNum iistart, IntNum iistep, IntNum iiend, boolean orEqual)