
public abstract class TroveArrayDBIDs extends Object implements ArrayDBIDs
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TroveArrayDBIDs.DBIDItr
Iterate over a Trove IntList, ELKI/C-style
|
| Constructor and Description |
|---|
TroveArrayDBIDs() |
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(DBIDRef key)
Search for the position of the given key, assuming that the data set is
sorted.
|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
DBID |
get(int index)
Get the i'th entry (starting at 0)
|
protected abstract gnu.trove.list.TIntList |
getStore()
Get the array store
|
boolean |
isEmpty()
Test for an empty DBID collection.
|
DBIDMIter |
iter()
Iterable
|
Iterator<DBID> |
iterator()
Classic iterator.
|
int |
size()
Size of the DBID "collection".
|
protected abstract gnu.trove.list.TIntList getStore()
public Iterator<DBID> iterator()
DBIDspublic DBIDMIter iter()
ArrayDBIDsiter in interface ArrayDBIDsiter in interface DBIDspublic DBID get(int index)
ArrayDBIDsget in interface ArrayDBIDsindex - Indexpublic int size()
ArrayDBIDssize in interface ArrayDBIDssize in interface DBIDspublic boolean isEmpty()
DBIDspublic boolean contains(DBIDRef o)
DBIDspublic int binarySearch(DBIDRef key)
ArrayDBIDs-(1+insertion position) is returned, as
for Java Collections.binarySearch(java.util.List<? extends java.lang.Comparable<? super T>>, T)binarySearch in interface ArrayDBIDskey - Key to search for