T - Entry typeA - Array typepublic class SubsetArrayAdapter<T,A> extends java.lang.Object implements ArrayAdapter<T,A>
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
offs
Offsets to return.
|
(package private) ArrayAdapter<T,? super A> |
wrapped
Wrapped adapter.
|
| Constructor and Description |
|---|
SubsetArrayAdapter(ArrayAdapter<T,? super A> wrapped,
int[] offs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get(A array,
int off)
Get the off'th item from the array.
|
int |
size(A array)
Get the size of the array.
|
ArrayAdapter<T,? super A> wrapped
int[] offs
public SubsetArrayAdapter(ArrayAdapter<T,? super A> wrapped, int[] offs)
wrapped - Wrapped adapteroffs - Offsetspublic int size(A array)
ArrayAdaptersize in interface ArrayAdapter<T,A>array - Array-like thingpublic T get(A array, int off) throws java.lang.IndexOutOfBoundsException
ArrayAdapterget in interface ArrayAdapter<T,A>array - Array to get fromoff - Offsetjava.lang.IndexOutOfBoundsException - for an invalid index.Copyright © 2019 ELKI Development Team. License information.