Package gnu.lists
Class TransformedArray<E>
java.lang.Object
gnu.lists.AbstractSequence<E>
gnu.lists.TransformedArray<E>
- All Implemented Interfaces:
Array<E>
- Direct Known Subclasses:
Arrays.ProcTransformedArray,ComposedArray,FlattenedArray,GeneralArray
Indexes are mapped.
-
Field Summary
FieldsFields inherited from class gnu.lists.AbstractSequence
noInts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleangetBooleanRaw(int effi) bytegetByteRaw(int effi) chargetCharRaw(int effi) doublegetDoubleRaw(int effi) intfloatgetFloatRaw(int effi) intgetInt(int i) intgetInt(int i, int j) intgetIntRaw(int effi) longgetLongRaw(int effi) getRaw(int effi) Given an "effective index", return element as object.getRowMajor(int index) shortgetShortRaw(int effi) voidGiven an "effective index", set selected element.Methods inherited from class gnu.lists.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, 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, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, 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, size, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedExceptionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gnu.lists.Array
asImmutable, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, get, get, get, get, get, getInt, getInt, getInt, getLowBound, getSize, getSize, isEmpty, rank, set
-
Field Details
-
base
-
-
Constructor Details
-
TransformedArray
public TransformedArray() -
TransformedArray
-
-
Method Details
-
getElementKind
public int getElementKind()- Specified by:
getElementKindin interfaceArray<E>- Overrides:
getElementKindin classAbstractSequence<E>
-
getRowMajor
- Specified by:
getRowMajorin interfaceArray<E>- Overrides:
getRowMajorin classAbstractSequence<E>
-
getRaw
Description copied from interface:ArrayGiven an "effective index", return element as object. -
getBooleanRaw
public boolean getBooleanRaw(int effi) - Specified by:
getBooleanRawin interfaceArray<E>- Overrides:
getBooleanRawin classAbstractSequence<E>
-
getByteRaw
public byte getByteRaw(int effi) - Specified by:
getByteRawin interfaceArray<E>- Overrides:
getByteRawin classAbstractSequence<E>
-
getCharRaw
public char getCharRaw(int effi) - Specified by:
getCharRawin interfaceArray<E>- Overrides:
getCharRawin classAbstractSequence<E>
-
getShortRaw
public short getShortRaw(int effi) - Specified by:
getShortRawin interfaceArray<E>- Overrides:
getShortRawin classAbstractSequence<E>
-
getIntRaw
public int getIntRaw(int effi) -
getLongRaw
public long getLongRaw(int effi) - Specified by:
getLongRawin interfaceArray<E>- Overrides:
getLongRawin classAbstractSequence<E>
-
getFloatRaw
public float getFloatRaw(int effi) - Specified by:
getFloatRawin interfaceArray<E>- Overrides:
getFloatRawin classAbstractSequence<E>
-
getDoubleRaw
public double getDoubleRaw(int effi) - Specified by:
getDoubleRawin interfaceArray<E>- Overrides:
getDoubleRawin classAbstractSequence<E>
-
getInt
public int getInt(int i) -
getInt
public int getInt(int i, int j) -
setRaw
Description copied from class:AbstractSequenceGiven an "effective index", set selected element. -
checkCanWrite
protected void checkCanWrite()- Overrides:
checkCanWritein classAbstractSequence<E>
-