public class TDoubleListAdapter extends Object implements NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
Modifier | Constructor and Description |
---|---|
protected |
TDoubleListAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
get(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array.
|
byte |
getByte(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(gnu.trove.list.TDoubleList array,
int off)
Get the off'th item from the array as short.
|
int |
size(gnu.trove.list.TDoubleList array)
Get the size of the array.
|
public int size(gnu.trove.list.TDoubleList array)
ArrayAdapter
size
in interface ArrayAdapter<Double,gnu.trove.list.TDoubleList>
size
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array-like thingpublic Double get(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<Double,gnu.trove.list.TDoubleList>
get
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public double getDouble(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public float getFloat(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public int getInteger(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public short getShort(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public long getLong(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public byte getByte(gnu.trove.list.TDoubleList array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<Double,gnu.trove.list.TDoubleList>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.