public class UnsignedByteLargeArray extends LargeArray
LargeArray.DeallocatorisConstant, LARGEST_SUBARRAY, length, parent, ptr, sizeof, type| Constructor and Description |
|---|
UnsignedByteLargeArray(byte[] data)
Creates new instance of this class.
|
UnsignedByteLargeArray(long length)
Creates new instance of this class.
|
UnsignedByteLargeArray(long length,
boolean zeroNativeMemory)
Creates new instance of this class.
|
UnsignedByteLargeArray(long length,
short constantValue)
Creates a constant array.
|
UnsignedByteLargeArray(short[] data)
Creates new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
UnsignedByteLargeArray |
clone()
Returns a deep copy of this instance.
|
boolean |
equals(Object o) |
Short |
get(long i)
Returns a value at index i.
|
boolean |
getBoolean(long i)
Returns a boolean value at index i.
|
boolean[] |
getBooleanData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns boolean data.
|
boolean[] |
getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
byte |
getByte(long i)
Returns a signed byte value at index i.
|
byte[] |
getByteData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns byte data.
|
byte[] |
getByteData(byte[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
byte[] |
getData()
Returns a reference to the internal data array.
|
double |
getDouble(long i)
Returns a double value at index i.
|
double[] |
getDoubleData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns double data.
|
double[] |
getDoubleData(double[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
float |
getFloat(long i)
Returns a float value at index i.
|
float[] |
getFloatData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns float data.
|
float[] |
getFloatData(float[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
Byte |
getFromNative(long i)
Returns a value at index i.
|
int |
getInt(long i)
Returns an int value at index i.
|
int[] |
getIntData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns int data.
|
int[] |
getIntData(int[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
long |
getLong(long i)
Returns a long value at index i.
|
long[] |
getLongData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns long data.
|
long[] |
getLongData(long[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
short |
getShort(long i)
Returns a short value at index i.
|
short[] |
getShortData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns short data.
|
short[] |
getShortData(short[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
short |
getUnsignedByte(long i)
Returns an unsigned byte value at index i.
|
int |
hashCode() |
void |
setBoolean(long i,
boolean value)
Sets a boolean value at index i.
|
void |
setByte(long i,
byte value)
Sets a byte value at index i.
|
void |
setDouble(long i,
double value)
Sets a double value at index i.
|
void |
setFloat(long i,
float value)
Sets a float value at index i.
|
void |
setInt(long i,
int value)
Sets an int value at index i.
|
void |
setLong(long i,
long value)
Sets a long value at index i.
|
void |
setShort(long i,
short value)
Sets a short value at index i.
|
void |
setToNative(long i,
Object value)
Sets a value at index i.
|
void |
setUnsignedByte(long i,
short value)
Sets an unsigned byte value at index i.
|
get_safe, getBoolean_safe, getByte_safe, getDouble_safe, getFloat_safe, getInt_safe, getLong_safe, getMaxSizeOf32bitArray, getShort_safe, getType, getUnsignedByte_safe, isConstant, isLarge, isNumeric, length, nativePointer, set_safe, set, setBoolean_safe, setByte_safe, setDouble_safe, setFloat_safe, setInt_safe, setLong_safe, setMaxSizeOf32bitArray, setShort_safe, setUnsignedByte_safe, zeroNativeMemorypublic UnsignedByteLargeArray(long length)
length - number of elementspublic UnsignedByteLargeArray(long length,
boolean zeroNativeMemory)
length - number of elementszeroNativeMemory - if true, then the native memory is zeroed.public UnsignedByteLargeArray(long length,
short constantValue)
length - number of elementsconstantValue - valuepublic UnsignedByteLargeArray(byte[] data)
data - data array, this reference is used internally.public UnsignedByteLargeArray(short[] data)
data - data array, this reference is not used internally.public UnsignedByteLargeArray clone()
clone in class LargeArraypublic boolean equals(Object o)
equals in class LargeArraypublic int hashCode()
hashCode in class LargeArraypublic final Short get(long i)
LargeArrayget in class LargeArrayi - an indexpublic final Byte getFromNative(long i)
LargeArraygetFromNative in class LargeArrayi - indexpublic final boolean getBoolean(long i)
LargeArraygetBoolean in class LargeArrayi - an indexpublic final byte getByte(long i)
LargeArraygetByte in class LargeArrayi - an indexpublic final short getUnsignedByte(long i)
LargeArraygetUnsignedByte in class LargeArrayi - an indexpublic final short getShort(long i)
LargeArraygetShort in class LargeArrayi - an indexpublic final int getInt(long i)
LargeArraygetInt in class LargeArrayi - an indexpublic final long getLong(long i)
LargeArraygetLong in class LargeArrayi - an indexpublic final float getFloat(long i)
LargeArraygetFloat in class LargeArrayi - an indexpublic final double getDouble(long i)
LargeArraygetDouble in class LargeArrayi - an indexpublic final boolean[] getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
LargeArraygetBooleanData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final boolean[] getBooleanData()
LargeArraygetBooleanData in class LargeArraypublic final byte[] getData()
LargeArraygetData in class LargeArraypublic final byte[] getByteData()
LargeArraygetByteData in class LargeArraypublic final byte[] getByteData(byte[] a,
long startPos,
long endPos,
long step)
LargeArraygetByteData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final short[] getShortData()
LargeArraygetShortData in class LargeArraypublic final short[] getShortData(short[] a,
long startPos,
long endPos,
long step)
LargeArraygetShortData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final int[] getIntData()
LargeArraygetIntData in class LargeArraypublic final int[] getIntData(int[] a,
long startPos,
long endPos,
long step)
LargeArraygetIntData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final long[] getLongData()
LargeArraygetLongData in class LargeArraypublic final long[] getLongData(long[] a,
long startPos,
long endPos,
long step)
LargeArraygetLongData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final float[] getFloatData()
LargeArraygetFloatData in class LargeArraypublic final float[] getFloatData(float[] a,
long startPos,
long endPos,
long step)
LargeArraygetFloatData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final double[] getDoubleData()
LargeArraygetDoubleData in class LargeArraypublic final double[] getDoubleData(double[] a,
long startPos,
long endPos,
long step)
LargeArraygetDoubleData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final void setToNative(long i,
Object value)
LargeArraysetToNative in class LargeArrayi - indexvalue - value to setpublic final void setBoolean(long i,
boolean value)
LargeArraysetBoolean in class LargeArrayi - indexvalue - value to setpublic final void setByte(long i,
byte value)
LargeArraysetByte in class LargeArrayi - indexvalue - value to setpublic final void setUnsignedByte(long i,
short value)
LargeArraysetUnsignedByte in class LargeArrayi - indexvalue - value to setpublic final void setShort(long i,
short value)
LargeArraysetShort in class LargeArrayi - indexvalue - value to setpublic final void setInt(long i,
int value)
LargeArraysetInt in class LargeArrayi - indexvalue - value to setpublic final void setLong(long i,
long value)
LargeArraysetLong in class LargeArrayi - indexvalue - value to setpublic final void setFloat(long i,
float value)
LargeArraysetFloat in class LargeArrayi - indexvalue - value to setpublic final void setDouble(long i,
double value)
LargeArraysetDouble in class LargeArrayi - indexvalue - value to setCopyright © 2015. All rights reserved.