Class Arrays.ProcTransformedArray<E>
java.lang.Object
gnu.lists.AbstractSequence<E>
gnu.lists.TransformedArray<E>
gnu.kawa.functions.Arrays.ProcTransformedArray<E>
- All Implemented Interfaces:
Array<E>
- Enclosing class:
Arrays
General array "view" class using a Procedure index transformer.
Used by array-transform procedure.
-
Field Summary
Fields inherited from class TransformedArray
baseFields inherited from class AbstractSequence
noInts -
Constructor Summary
ConstructorsConstructorDescriptionProcTransformedArray(Array<E> base, Procedure transformer, int[] dimensions, int[] lowBounds) -
Method Summary
Modifier and TypeMethodDescriptioninteffectiveIndex(int[] indexes) final inteffectiveIndex(int i, int j) intgetLowBound(int dim) Get the least dimension along the specified dimension.intgetSize(int dim) Get length along specified dimension.intrank()Get the rank (number of dimensions) of this array.Methods inherited from class TransformedArray
checkCanWrite, getBooleanRaw, getByteRaw, getCharRaw, getDoubleRaw, getElementKind, getFloatRaw, getInt, getInt, getIntRaw, getLongRaw, getRaw, getRowMajor, getShortRaw, setRawMethods inherited from class AbstractSequence
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, elements, endPos, equals, equals, fill, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, get, getAttribute, getAttributeLength, getContainingSequenceSize, getIndexDifference, getInt, getInt, getInt, getIterator, getIterator, getIteratorAtPos, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, 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, set, setAt, setBuffer, setPosNext, setPosPrevious, size, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedExceptionMethods inherited from interface Array
asImmutable, effectiveIndex, effectiveIndex, effectiveIndex, get, get, get, get, get, getInt, getInt, getInt, getSize, isEmpty, set
-
Constructor Details
-
ProcTransformedArray
-
-
Method Details
-
rank
-
getLowBound
public int getLowBound(int dim) Description copied from interface:ArrayGet the least dimension along the specified dimension.- Specified by:
getLowBoundin interfaceArray<E>- Overrides:
getLowBoundin classAbstractSequence<E>
-
getSize
-
effectiveIndex
public final int effectiveIndex(int i, int j) - Specified by:
effectiveIndexin interfaceArray<E>- Overrides:
effectiveIndexin classAbstractSequence<E>
-
effectiveIndex
public int effectiveIndex(int[] indexes) - Specified by:
effectiveIndexin interfaceArray<E>- Overrides:
effectiveIndexin classAbstractSequence<E>
-