N
- Number typeA
- Array typepublic interface NumberArrayAdapter<N extends java.lang.Number,A> extends ArrayAdapter<N,A>
Modifier and Type | Method and Description |
---|---|
N |
get(A array,
int off)
Get the off'th item from the array.
|
default byte |
getByte(A array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(A array,
int off)
Get the off'th item from the array as double.
|
default float |
getFloat(A array,
int off)
Get the off'th item from the array as float.
|
default int |
getInteger(A array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(A array,
int off)
Get the off'th item from the array as long.
|
default short |
getShort(A array,
int off)
Get the off'th item from the array as short.
|
int |
size(A array)
Get the size of the array.
|
int size(A array)
ArrayAdapter
size
in interface ArrayAdapter<N extends java.lang.Number,A>
array
- Array-like thingN get(A array, int off) throws java.lang.IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<N extends java.lang.Number,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.double getDouble(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.default float getFloat(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.default int getInteger(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.default short getShort(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.long getLong(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.default byte getByte(A array, int off) throws java.lang.IndexOutOfBoundsException
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.Copyright © 2019 ELKI Development Team. License information.