T
- Data object type.public class ListArrayAdapter<T> extends Object implements ArrayAdapter<T,List<? extends T>>
List
in an array API.
Use the static instance from ArrayLikeUtil
!Modifier | Constructor and Description |
---|---|
protected |
ListArrayAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
get(List<? extends T> array,
int off)
Get the off'th item from the array.
|
int |
size(List<? extends T> array)
Get the size of the array.
|
protected ListArrayAdapter()
ArrayLikeUtil
!public int size(List<? extends T> array)
ArrayAdapter
size
in interface ArrayAdapter<T,List<? extends T>>
array
- Array-like thingpublic T get(List<? extends T> array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<T,List<? extends T>>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.