public static class Arrays.BuiltArray<E> extends AbstractSequence<E> implements Array<E>
noInts| Constructor and Description |
|---|
BuiltArray(Procedure getter,
int[] dimensions,
int[] lowBounds) |
BuiltArray(Procedure getter,
Procedure setter,
int[] dimensions,
int[] lowBounds) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCanWrite() |
E |
get() |
E |
get(int i) |
E |
get(int[] indexes) |
E |
get(int i,
int j) |
E |
get(int i,
int j,
int k,
int... rest) |
int |
getLowBound(int dim)
Get the least dimension along the specified dimension.
|
E |
getRaw(int effi)
Given an "effective index", return element as object.
|
int |
getSize(int dim)
Get length along specified dimension.
|
int |
rank()
Get the rank (number of dimensions) of this array.
|
void |
set(int[] indexes,
E value) |
void |
setRaw(int effi,
E value)
Given an "effective index", set selected element.
|
add, add, addAll, addAll, addPos, asImmutable, badRank, boundedHash, 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, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getCharRaw, getContainingSequenceSize, getDoubleRaw, getElementKind, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIterator, getIteratorAtPos, getLongRaw, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getRowMajor, getShortRaw, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isAfterPos, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, nextMatching, nextPos, parentPos, previousPos, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setAt, setBuffer, setPosNext, setPosPrevious, size, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitasImmutable, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, getBooleanRaw, getByteRaw, getCharRaw, getDoubleRaw, getElementKind, getFloatRaw, getInt, getInt, getInt, getInt, getInt, getIntRaw, getLongRaw, getRowMajor, getShortRaw, getSize, isEmptypublic BuiltArray(Procedure getter, int[] dimensions, int[] lowBounds)
protected void checkCanWrite()
checkCanWrite in class AbstractSequence<E>public int rank()
Arraypublic int getLowBound(int dim)
ArraygetLowBound in interface Array<E>getLowBound in class AbstractSequence<E>public int getSize(int dim)
Arraypublic E get()
public E get(int i)
public E get(int i, int j)
public E get(int i, int j, int k, int... rest)
public E get(int[] indexes)
public E getRaw(int effi)
Arraypublic void set(int[] indexes,
E value)
public void setRaw(int effi,
E value)
AbstractSequence