
protected class IntegerDBID.DBIDItr extends Object implements DBIDArrayIter, IntegerDBIDRef
| Modifier and Type | Field and Description | 
|---|---|
| (package private) int | posIterator position: We use an integer so we can support retract(). | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | IntegerDBID.DBIDItr() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | advance()Moves the iterator forward to the next entry. | 
| void | advance(int count)Moves the iterator forward or backward by the given offset. | 
| boolean | equals(Object other)WARNING: calling equality on a reference may be an indicator of incorrect
 usage, as it is not clear whether the programmer meant the references to be
 the same or the DBIDs. | 
| int | getOffset()Get current iterator offset. | 
| int | hashCode()WARNING: Hash codes of this interface might not be stable (e.g. for
 iterators). | 
| int | internalGetIndex()Get the internal index. | 
| void | retract()Moves the iterator backward to the previous entry. | 
| void | seek(int off)Moves the iterator to the given position | 
| String | toString() | 
| boolean | valid()Returns true if the iterator currently points to a valid object. | 
public void advance()
Iterpublic void advance(int count)
ArrayIterpublic void retract()
ArrayIterpublic void seek(int off)
ArrayIterpublic int getOffset()
ArrayIterpublic int internalGetIndex()
DBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic boolean valid()
Iterpublic int hashCode()
DBIDRefDBIDUtil.deref(de.lmu.ifi.dbs.elki.database.ids.DBIDRef) to get an object with a stable hash code!public boolean equals(Object other)
DBIDRefDBIDUtil.equal(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef) or DBIDUtil.compare(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)!