
class IntegerDBIDVar extends Object implements DBIDVar
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | IntegerDBIDVar.DBIDItrPseudo iterator for DBIDs interface. | 
| Modifier and Type | Field and Description | 
|---|---|
| (package private) int | idThe actual value. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | IntegerDBIDVar()Constructor. | 
| protected  | IntegerDBIDVar(DBIDRef val)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! | 
| int | internalGetIndex()Get the internal index. | 
| protected void | internalSetIndex(int i)Internal set to integer. | 
| boolean | isEmpty()Test for an empty DBID collection. | 
| DBIDArrayIter | iter()Iterable | 
| void | set(DBIDRef ref)Assign a new value for the reference. | 
| int | size()Size of the DBID "collection". | 
| String | toString() | 
protected IntegerDBIDVar()
protected IntegerDBIDVar(DBIDRef val)
val - public int internalGetIndex()
DBIDRefinternalGetIndex in interface DBIDRefprotected void internalSetIndex(int i)
i - integer valuepublic void set(DBIDRef ref)
DBIDVarpublic DBID get(int i)
ArrayDBIDsDBIDArrayIter via ArrayDBIDs.iter() instead!get in interface ArrayDBIDsi - Indexpublic DBIDArrayIter iter()
ArrayDBIDsiter in interface ArrayDBIDsiter in interface DBIDspublic int size()
ArrayDBIDssize in interface ArrayDBIDssize in interface 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 forpublic boolean contains(DBIDRef o)
DBIDspublic boolean isEmpty()
DBIDspublic void assign(int i,
          DBIDVar var)
ArrayDBIDsindex.assign in interface ArrayDBIDsi - Positionvar - Variable to assign the value to.