
class UnmodifiableIntegerArrayDBIDs.UnmodifiableDBIDIter extends Object implements IntegerDBIDArrayIter
| Modifier and Type | Field and Description |
|---|---|
private IntegerDBIDArrayIter |
it
Wrapped iterator.
|
| Constructor and Description |
|---|
UnmodifiableDBIDIter(IntegerDBIDArrayIter it)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DBIDArrayIter |
advance()
Moves the iterator forward to the next entry.
|
DBIDArrayIter |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Return the integer value of the object ID.
|
DBIDArrayIter |
retract()
Moves the iterator backward to the previous entry.
|
DBIDArrayIter |
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.
|
private IntegerDBIDArrayIter it
public UnmodifiableDBIDIter(IntegerDBIDArrayIter it)
it - inner iteratorpublic boolean valid()
Iterpublic DBIDArrayIter advance()
Iterpublic DBIDArrayIter advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface ArrayItercount - offset to move forward or backwardspublic DBIDArrayIter retract()
ArrayIterretract in interface DBIDArrayIterretract in interface ArrayIterpublic DBIDArrayIter seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface ArrayIteroff - Seek offsetpublic int getOffset()
ArrayIterpublic int internalGetIndex()
IntegerDBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.