public class NodeArrayAdapter extends Object implements ArrayAdapter<SpatialEntry,AbstractNode<? extends SpatialEntry>>
Modifier and Type | Field and Description |
---|---|
static NodeArrayAdapter |
STATIC
Static adapter.
|
Modifier | Constructor and Description |
---|---|
protected |
NodeArrayAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SpatialEntry |
get(AbstractNode<? extends SpatialEntry> array,
int off)
Get the off'th item from the array.
|
int |
size(AbstractNode<? extends SpatialEntry> array)
Get the size of the array.
|
public static NodeArrayAdapter STATIC
public int size(AbstractNode<? extends SpatialEntry> array)
ArrayAdapter
size
in interface ArrayAdapter<SpatialEntry,AbstractNode<? extends SpatialEntry>>
array
- Array-like thingpublic SpatialEntry get(AbstractNode<? extends SpatialEntry> array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<SpatialEntry,AbstractNode<? extends SpatialEntry>>
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.