
protected class ArrayStaticIntegerDBIDs.Itr extends Object implements IntegerDBIDArrayIter
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
pos
Position within array.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Itr() |
| Modifier and Type | Method and Description |
|---|---|
ArrayStaticIntegerDBIDs.Itr |
advance()
Moves the iterator forward to the next entry.
|
ArrayStaticIntegerDBIDs.Itr |
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 |
internalGetIndex()
Return the integer value of the object ID.
|
ArrayStaticIntegerDBIDs.Itr |
retract()
Moves the iterator backward to the previous entry.
|
ArrayStaticIntegerDBIDs.Itr |
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 boolean valid()
Iterpublic ArrayStaticIntegerDBIDs.Itr advance()
Iterpublic ArrayStaticIntegerDBIDs.Itr advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface ArrayItercount - offset to move forward or backwardspublic ArrayStaticIntegerDBIDs.Itr retract()
ArrayIterretract in interface DBIDArrayIterretract in interface ArrayIterpublic ArrayStaticIntegerDBIDs.Itr seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface ArrayIteroff - Seek offsetpublic int getOffset()
ArrayIterpublic int internalGetIndex()
IntegerDBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic 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)!Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.