public class ArrayString extends Array
Array| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayString.D0
Concrete implementation of Array specialized for String, rank 0.
|
static class |
ArrayString.D1
Concrete implementation of Array specialized for Strings, rank 1.
|
static class |
ArrayString.D2
Concrete implementation of Array specialized for Strings, rank 2.
|
static class |
ArrayString.D3
Concrete implementation of Array specialized for Strings, rank 3.
|
static class |
ArrayString.D4
Concrete implementation of Array specialized for Strings, rank 4.
|
static class |
ArrayString.D5
Concrete implementation of Array specialized for Strings, rank 5.
|
static class |
ArrayString.D6
Concrete implementation of Array specialized for Strings, rank 6.
|
static class |
ArrayString.D7
Concrete implementation of Array specialized for Strings, rank 7.
|
| Constructor and Description |
|---|
ArrayString(int[] dimensions)
Create a new Array of type long and the given shape.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(Index i)
get the value at the specified index.
|
boolean |
getBoolean(Index i)
not legal, throw ForbiddenConversionException
|
boolean |
getBoolean(int index) |
byte |
getByte(Index i)
not legal, throw ForbiddenConversionException
|
byte |
getByte(int index) |
char |
getChar(Index i)
not legal, throw ForbiddenConversionException
|
char |
getChar(int index) |
java.nio.ByteBuffer |
getDataAsByteBuffer()
This gets the data as a ByteBuffer, in correct order.
|
double |
getDouble(Index i)
not legal, throw ForbiddenConversionException
|
double |
getDouble(int index) |
java.lang.Class |
getElementType()
Return the element class type
|
float |
getFloat(Index i)
not legal, throw ForbiddenConversionException
|
float |
getFloat(int index) |
int |
getInt(Index i)
not legal, throw ForbiddenConversionException
|
int |
getInt(int index) |
long |
getLong(Index i)
not legal, throw ForbiddenConversionException
|
long |
getLong(int index) |
java.lang.Object |
getObject(Index i)
Get the array element at index as an Object.
|
java.lang.Object |
getObject(int index) |
short |
getShort(Index i)
not legal, throw ForbiddenConversionException
|
short |
getShort(int index) |
java.lang.Object |
getStorage()
Get underlying primitive array storage.
|
void |
set(Index i,
java.lang.String value)
set the value at the sepcified index.
|
void |
setBoolean(Index i,
boolean value)
not legal, throw ForbiddenConversionException
|
void |
setBoolean(int index,
boolean value) |
void |
setByte(Index i,
byte value)
not legal, throw ForbiddenConversionException
|
void |
setByte(int index,
byte value) |
void |
setChar(Index i,
char value)
not legal, throw ForbiddenConversionException
|
void |
setChar(int index,
char value) |
void |
setDouble(Index i,
double value)
not legal, throw ForbiddenConversionException
|
void |
setDouble(int index,
double value) |
void |
setFloat(Index i,
float value)
not legal, throw ForbiddenConversionException
|
void |
setFloat(int index,
float value) |
void |
setInt(Index i,
int value)
not legal, throw ForbiddenConversionException
|
void |
setInt(int index,
int value) |
void |
setLong(Index i,
long value)
not legal, throw ForbiddenConversionException
|
void |
setLong(int index,
long value) |
void |
setObject(Index i,
java.lang.Object value)
Set the array element at index to the specified value.
|
void |
setObject(int index,
java.lang.Object value) |
void |
setShort(Index i,
short value)
not legal, throw ForbiddenConversionException
|
void |
setShort(int index,
short value) |
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, factoryCopy, flip, get1DJavaArray, 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, transposepublic ArrayString(int[] dimensions)
dimensions - the shape of the Array.public java.lang.String get(Index i)
public boolean getBoolean(Index i)
getBoolean in class Arrayi - Index with current element setindex cast to boolean if necessary.public boolean getBoolean(int index)
getBoolean in class Arraypublic byte getByte(Index i)
public char getChar(Index i)
public java.nio.ByteBuffer getDataAsByteBuffer()
ArraygetDataAsByteBuffer in class Arraypublic double getDouble(Index i)
public java.lang.Class getElementType()
getElementType in class Arraypublic float getFloat(Index i)
public int getInt(Index i)
public long getLong(Index i)
public java.lang.Object getObject(Index i)
Arraypublic short getShort(Index i)
public java.lang.Object getStorage()
ArraygetStorage in class Arraypublic void set(Index i, java.lang.String value)
public void setBoolean(Index i, boolean value)
setBoolean in class Arrayi - Index with current element setvalue - the new value; cast to underlying data type if necessary.public void setBoolean(int index,
boolean value)
setBoolean in class Arraypublic void setByte(Index i, byte value)
public void setChar(Index i, char value)
public void setDouble(Index i, double value)
public void setFloat(Index i, float value)
public void setInt(Index i, int value)
public void setLong(Index i, long value)
public void setObject(Index i, java.lang.Object value)
Arraypublic void setObject(int index,
java.lang.Object value)
public void setShort(Index i, short value)