private class ArrayModifiableIntegerDBIDs.Itr extends Object implements IntegerDBIDArrayMIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
private |
ArrayModifiableIntegerDBIDs.Itr() |
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.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Return the integer value of the object ID.
|
void |
remove()
Remove the object the iterator currently points to.
|
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 int internalGetIndex()
IntegerDBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public boolean valid()
Iter
public void advance()
Iter
public int getOffset()
ArrayIter
public void advance(int count)
ArrayIter
public void retract()
ArrayIter
public void seek(int off)
ArrayIter
public void remove()
DBIDMIter
DBIDUtil.deref(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
may return a different
element. Call Iter.advance()
to advance the iterator to the next
element for further processing.