public class IntValues extends Values
Constructor and Description |
---|
IntValues()
construct a IntValues with no data
|
IntValues(int size)
construct a IntValues for a given int array with the given number of ints.
|
IntValues(int[] intArray)
construct a IntValues for a given int array
|
Modifier and Type | Method and Description |
---|---|
int |
byteSize()
retrun the size in bytes of all the attributes in this datum.
|
byte |
getByte(int index)
return the short value of the int at the given index of the float array
|
byte[] |
getBytes()
Return a byte array representing all elements in the Values object
|
byte[] |
getBytes(byte[] filler)
fill the passed array with this data
|
int[] |
getDataReference()
Return a reference to the data array this object contains.
|
double |
getDouble(int index)
return the double value of the int at the given index of the int array
|
double[] |
getDoubles()
Return double array representing all elements in the Values object
|
double[] |
getDoubles(double[] filler)
fill the passed array with this data
|
float |
getFloat(int index)
return the float value of the int at the given index of the array
|
float[] |
getFloats()
Return float array representing all elements in the Values object
|
float[] |
getFloats(float[] filler)
fill the passed array with this data
|
int |
getInt(int index)
return the int value of the int at the given index of the int array
|
int[] |
getInts()
return a reference to the int array this IntValues object is representing
|
int[] |
getInts(int[] filler)
fill the passed array with this data
|
int[] |
getInts(int start,
int stride,
int num)
Return int array representing a subset of elements in the Values object
Copying starts at the index specified by the start argument,
the 2nd item copied will be at index start + stride where stride is the
second argument; the 3rd is at start + 2*stride and so forth until
the specified number of values have been copied (3rd argument).
|
short |
getShort(int index)
return the short value of the int at the given index of the int array
|
short[] |
getShorts()
Return a short array representing all elements in the Values object
|
short[] |
getShorts(short[] filler)
fill the passed array with this data
|
int |
getStorageType()
get storage Type
|
int[] |
intValues()
Deprecated.
Use getDataReference()
|
Values |
reorder(int step)
Return a new Values object with the values shuffled.
|
void |
setByte(int index,
byte val)
Set the specified entry to the specified value after conversion, if needed.
|
void |
setData(int index,
int intData)
set the data at given index
|
void |
setDouble(int index,
double val)
Set the specified entry to the specified value after conversion, if needed.
|
void |
setFloat(int index,
float val)
Set the specified entry to the specified value after conversion, if needed.
|
void |
setInt(int index,
int val)
Set the specified entry to the specified value after conversion, if needed.
|
void |
setShort(int index,
short val)
Set the specified entry to the specified value after conversion, if needed.
|
void |
setValues(int start,
Values newVals)
Assign elements of the passed in Values object to this one beginning
at the start index .
|
void |
setValues(Values newVals)
Assign the data from the argument Values object to this object.
|
int |
size()
retrun the size of the 1 D array, in which the data is stored
|
Values |
spawn()
create a copy of this object
|
Values |
spawn(int start,
int stride,
int count)
Create a new instance of IntValues with a subsest
of the data in this object.
|
public IntValues()
public IntValues(int[] intArray)
public IntValues(int size)
public final void setData(int index, int intData)
public int getStorageType()
getStorageType
in class Values
public int size()
public int byteSize()
public Values reorder(int step)
public double[] getDoubles()
getDoubles
in class Values
public float[] getFloats()
public int[] getInts()
public short[] getShorts()
public byte[] getBytes()
public double[] getDoubles(double[] filler)
getDoubles
in class Values
public float[] getFloats(float[] filler)
public int[] getInts(int[] filler)
public short[] getShorts(short[] filler)
public byte[] getBytes(byte[] filler)
public float getFloat(int index)
public int getInt(int index)
public short getShort(int index)
public byte getByte(int index)
public double getDouble(int index)
public int[] intValues()
public int[] getDataReference()
public int[] getInts(int start, int stride, int num)
public Values spawn(int start, int stride, int count)
public void setDouble(int index, double val)
public void setFloat(int index, float val)
public void setInt(int index, int val)
public void setShort(int index, short val)
public void setByte(int index, byte val)
public void setValues(Values newVals)
public void setValues(int start, Values newVals)