
public class IntArrayStaticDBIDs extends Object implements IntegerArrayStaticDBIDs
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | IntArrayStaticDBIDs.DBIDItrDBID iterator in ELKI/C style. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected int[] | idsThe actual storage. | 
| Constructor and Description | 
|---|
| IntArrayStaticDBIDs(int... ids)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | assign(int i,
      DBIDVar var)Assign a DBID variable the value of position  index. | 
| 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 i)Get the i'th entry (starting at 0)
 
 If possible, use an  DBIDArrayIterviaArrayDBIDs.iter()instead! | 
| boolean | isEmpty()Test for an empty DBID collection. | 
| IntegerDBIDArrayIter | iter()Iterable | 
| int | size()Size of the DBID "collection". | 
public IntArrayStaticDBIDs(int... ids)
ids - Array of ids.public IntegerDBIDArrayIter iter()
ArrayDBIDsiter in interface ArrayDBIDsiter in interface DBIDsiter in interface IntegerArrayStaticDBIDsiter in interface IntegerDBIDspublic int size()
ArrayDBIDssize in interface ArrayDBIDssize in interface DBIDspublic boolean isEmpty()
DBIDspublic boolean contains(DBIDRef o)
DBIDspublic DBID get(int i)
ArrayDBIDsDBIDArrayIter via ArrayDBIDs.iter() instead!get in interface ArrayDBIDsi - Indexpublic void assign(int i,
          DBIDVar var)
ArrayDBIDsindex.assign in interface ArrayDBIDsi - Positionvar - Variable to assign the value to.public 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