|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.ma2.Array
ucar.ma2.ArrayScalar
@Immutable public class ArrayScalar
Helper class for StructureDataAscii
Field Summary |
---|
Fields inherited from class ucar.ma2.Array |
---|
indexCalc, rank, unsigned |
Constructor Summary | |
---|---|
ArrayScalar(Object value)
|
Method Summary | |
---|---|
boolean |
getBoolean(Index ima)
Get the array element at the current element of ima, as a boolean. |
boolean |
getBoolean(int elem)
|
byte |
getByte(Index ima)
Get the array element at the current element of ima, as a byte. |
byte |
getByte(int elem)
|
char |
getChar(Index ima)
Get the array element at the current element of ima, as a char. |
char |
getChar(int elem)
|
double |
getDouble(Index ima)
Get the array element at the current element of ima, as a double. |
double |
getDouble(int elem)
|
Class |
getElementType()
Get the element class type of this Array |
float |
getFloat(Index ima)
Get the array element at the current element of ima, as a float. |
float |
getFloat(int elem)
|
int |
getInt(Index ima)
Get the array element at the current element of ima, as a int. |
int |
getInt(int elem)
|
long |
getLong(Index ima)
Get the array element at the current element of ima, as a long. |
long |
getLong(int elem)
|
Object |
getObject(Index ima)
Get the array element at index as an Object. |
Object |
getObject(int elem)
|
short |
getShort(Index ima)
Get the array element at the current element of ima, as a short. |
short |
getShort(int elem)
|
Object |
getStorage()
Get underlying primitive array storage. |
void |
setBoolean(Index ima,
boolean value)
Set the array element at the current element of ima. |
void |
setBoolean(int elem,
boolean value)
|
void |
setByte(Index ima,
byte value)
Set the array element at the current element of ima. |
void |
setByte(int elem,
byte value)
|
void |
setChar(Index ima,
char value)
Set the array element at the current element of ima. |
void |
setChar(int elem,
char value)
|
void |
setDouble(Index ima,
double value)
Set the array element at the current element of ima. |
void |
setDouble(int elem,
double val)
|
void |
setFloat(Index ima,
float value)
Set the array element at the current element of ima. |
void |
setFloat(int elem,
float val)
|
void |
setInt(Index ima,
int value)
Set the array element at the current element of ima. |
void |
setInt(int elem,
int value)
|
void |
setLong(Index ima,
long value)
Set the array element at the current element of ima. |
void |
setLong(int elem,
long value)
|
void |
setObject(Index ima,
Object value)
Set the array element at index to the specified value. |
void |
setObject(int elem,
Object value)
|
void |
setShort(Index ima,
short value)
Set the array element at the current element of ima. |
void |
setShort(int elem,
short value)
|
Methods inherited from class ucar.ma2.Array |
---|
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, makeArray, makeArray, makeArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, toString, transpose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayScalar(Object value)
Method Detail |
---|
public Class getElementType()
Array
getElementType
in class Array
public Object getStorage()
Array
getStorage
in class Array
public double getDouble(Index ima)
Array
getDouble
in class Array
ima
- Index with current element set
index
cast to double if necessary.public void setDouble(Index ima, double value)
Array
setDouble
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public float getFloat(Index ima)
Array
getFloat
in class Array
ima
- Index with current element set
index
cast to float if necessary.public void setFloat(Index ima, float value)
Array
setFloat
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public long getLong(Index ima)
Array
getLong
in class Array
ima
- Index with current element set
index
cast to long if necessary.public void setLong(Index ima, long value)
Array
setLong
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public int getInt(Index ima)
Array
getInt
in class Array
ima
- Index with current element set
index
cast to int if necessary.public void setInt(Index ima, int value)
Array
setInt
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public short getShort(Index ima)
Array
getShort
in class Array
ima
- Index with current element set
index
cast to short if necessary.public void setShort(Index ima, short value)
Array
setShort
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public byte getByte(Index ima)
Array
getByte
in class Array
ima
- Index with current element set
index
cast to float if necessary.public void setByte(Index ima, byte value)
Array
setByte
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public char getChar(Index ima)
Array
getChar
in class Array
ima
- Index with current element set
index
cast to char if necessary.public void setChar(Index ima, char value)
Array
setChar
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public boolean getBoolean(Index ima)
Array
getBoolean
in class Array
ima
- Index with current element set
index
cast to boolean if necessary.public void setBoolean(Index ima, boolean value)
Array
setBoolean
in class Array
ima
- Index with current element setvalue
- the new value; cast to underlying data type if necessary.public Object getObject(Index ima)
Array
getObject
in class Array
ima
- element Index
index
public void setObject(Index ima, Object value)
Array
setObject
in class Array
ima
- Index with current element setvalue
- the new value.public double getDouble(int elem)
getDouble
in class Array
public void setDouble(int elem, double val)
setDouble
in class Array
public float getFloat(int elem)
getFloat
in class Array
public void setFloat(int elem, float val)
setFloat
in class Array
public long getLong(int elem)
getLong
in class Array
public void setLong(int elem, long value)
setLong
in class Array
public int getInt(int elem)
getInt
in class Array
public void setInt(int elem, int value)
setInt
in class Array
public short getShort(int elem)
getShort
in class Array
public void setShort(int elem, short value)
setShort
in class Array
public byte getByte(int elem)
getByte
in class Array
public void setByte(int elem, byte value)
setByte
in class Array
public char getChar(int elem)
getChar
in class Array
public void setChar(int elem, char value)
setChar
in class Array
public boolean getBoolean(int elem)
getBoolean
in class Array
public void setBoolean(int elem, boolean value)
setBoolean
in class Array
public Object getObject(int elem)
getObject
in class Array
public void setObject(int elem, Object value)
setObject
in class Array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |