public class FloatArrayAdapter extends java.lang.Object implements NumberArrayAdapter<java.lang.Float,float[]>
float[]
in the ArrayAdapter API.
This class is generated from a code template.Modifier and Type | Field and Description |
---|---|
static FloatArrayAdapter |
STATIC
Static instance.
|
Modifier | Constructor and Description |
---|---|
protected |
FloatArrayAdapter()
Private constructor - use the static instance in
STATIC ! |
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
get(float[] array,
int off)
Deprecated.
|
byte |
getByte(float[] array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(float[] array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(float[] array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(float[] array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(float[] array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(float[] array,
int off)
Get the off'th item from the array as short.
|
int |
size(float[] array)
Get the size of the array.
|
public static final FloatArrayAdapter STATIC
protected FloatArrayAdapter()
STATIC
!public int size(float[] array)
ArrayAdapter
size
in interface ArrayAdapter<java.lang.Float,float[]>
size
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array-like thing@Deprecated public java.lang.Float get(float[] array, int off) throws java.lang.IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<java.lang.Float,float[]>
get
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public double getDouble(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public float getFloat(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public int getInteger(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public short getShort(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public long getLong(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public byte getByte(float[] array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<java.lang.Float,float[]>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.Copyright © 2019 ELKI Development Team. License information.