Package ucar.ma2
Class ArrayRagged
java.lang.Object
ucar.ma2.Array
ucar.ma2.ArrayRagged
DO NOT USE
- Since:
- Nov 15, 2008
-
Method Summary
Modifier and TypeMethodDescriptioncopy()DO NOT USE, throws UnsupportedOperationExceptionbooleangetBoolean(int index) booleangetBoolean(Index i) DO NOT USE, throw ForbiddenConversionExceptionbytegetByte(int index) byteDO NOT USE, throw ForbiddenConversionExceptionchargetChar(int index) charDO NOT USE, throw ForbiddenConversionExceptiondoublegetDouble(int index) doubleDO NOT USE, throw ForbiddenConversionExceptionGet the element class type of this ArrayfloatgetFloat(int index) floatDO NOT USE, throw ForbiddenConversionExceptionintgetInt(int index) intDO NOT USE, throw ForbiddenConversionExceptionlonggetLong(int index) longDO NOT USE, throw ForbiddenConversionExceptiongetObject(int elem) Get the array element at index as an Object.shortgetShort(int index) shortDO NOT USE, throw ForbiddenConversionExceptionGet underlying primitive array storage.voidsetBoolean(int index, boolean value) voidsetBoolean(Index i, boolean value) DO NOT USE, throw ForbiddenConversionExceptionvoidsetByte(int index, byte value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidsetChar(int index, char value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidsetDouble(int index, double value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidsetFloat(int index, float value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidsetInt(int index, int value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidsetLong(int index, long value) voidDO NOT USE, throw ForbiddenConversionExceptionvoidvoidSet the array element at index to the specified value.voidsetShort(int index, short value) voidDO NOT USE, throw ForbiddenConversionExceptionMethods inherited from class ucar.ma2.Array
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, factoryCopy, flip, get1DJavaArray, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, isVlen, makeArray, makeArray, makeArray, makeArrayRankPlusOne, makeFromJavaArray, makeFromJavaArray, makeObjectArray, makeVlenArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, shapeToString, slice, toString, transpose
-
Method Details
-
getElementType
Description copied from class:ArrayGet the element class type of this Array- Specified by:
getElementTypein classArray- Returns:
- the class of the element
-
getStorage
Description copied from class:ArrayGet underlying primitive array storage. Exposed for efficiency, use at your own risk.- Specified by:
getStoragein classArray- Returns:
- underlying primitive array storage
-
copy
DO NOT USE, throws UnsupportedOperationException -
getDouble
DO NOT USE, throw ForbiddenConversionException -
setDouble
DO NOT USE, throw ForbiddenConversionException -
getFloat
DO NOT USE, throw ForbiddenConversionException -
setFloat
DO NOT USE, throw ForbiddenConversionException -
getLong
DO NOT USE, throw ForbiddenConversionException -
setLong
DO NOT USE, throw ForbiddenConversionException -
getInt
DO NOT USE, throw ForbiddenConversionException -
setInt
DO NOT USE, throw ForbiddenConversionException -
getShort
DO NOT USE, throw ForbiddenConversionException -
setShort
DO NOT USE, throw ForbiddenConversionException -
getByte
DO NOT USE, throw ForbiddenConversionException -
setByte
DO NOT USE, throw ForbiddenConversionException -
getBoolean
DO NOT USE, throw ForbiddenConversionException- Specified by:
getBooleanin classArray- Parameters:
i- Index with current element set- Returns:
- value at
indexcast to boolean if necessary.
-
setBoolean
DO NOT USE, throw ForbiddenConversionException- Specified by:
setBooleanin classArray- Parameters:
i- Index with current element setvalue- the new value; cast to underlying data type if necessary.
-
getObject
Description copied from class:ArrayGet the array element at index as an Object. The returned value is wrapped in an object, eg Double for double -
setObject
Description copied from class:ArraySet the array element at index to the specified value. the value must be passed wrapped in the appropriate Object (eg Double for double) -
getChar
DO NOT USE, throw ForbiddenConversionException -
setChar
DO NOT USE, throw ForbiddenConversionException -
getDouble
public double getDouble(int index) -
setDouble
public void setDouble(int index, double value) -
getFloat
public float getFloat(int index) -
setFloat
public void setFloat(int index, float value) -
getLong
public long getLong(int index) -
setLong
public void setLong(int index, long value) -
getInt
public int getInt(int index) -
setInt
public void setInt(int index, int value) -
getShort
public short getShort(int index) -
setShort
public void setShort(int index, short value) -
getByte
public byte getByte(int index) -
setByte
public void setByte(int index, byte value) -
getChar
public char getChar(int index) -
setChar
public void setChar(int index, char value) -
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin classArray
-
setBoolean
public void setBoolean(int index, boolean value) - Specified by:
setBooleanin classArray
-
getObject
-
setObject
-