private class ArrayModifiableIntegerDBIDs.Itr extends java.lang.Object implements IntegerDBIDArrayMIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
private |
Itr() |
Modifier and Type | Method and Description |
---|---|
ArrayModifiableIntegerDBIDs.Itr |
advance()
Moves the iterator forward to the next entry.
|
ArrayModifiableIntegerDBIDs.Itr |
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.
|
ArrayModifiableIntegerDBIDs.Itr |
retract()
Moves the iterator backward to the previous entry.
|
ArrayModifiableIntegerDBIDs.Itr |
seek(int off)
Moves the iterator to the given position
|
void |
setDBID(DBIDRef val)
Set the current value.
|
java.lang.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 ArrayModifiableIntegerDBIDs.Itr advance()
Iter
public int getOffset()
ArrayIter
public ArrayModifiableIntegerDBIDs.Itr advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic ArrayModifiableIntegerDBIDs.Itr retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface ArrayIter
public ArrayModifiableIntegerDBIDs.Itr seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DBIDArrayMIter
seek
in interface ArrayIter
off
- Seek offsetpublic void setDBID(DBIDRef val)
DBIDArrayMIter
setDBID
in interface DBIDArrayMIter
val
- new valuepublic void remove()
DBIDMIter
DBIDUtil.deref(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
may return a different
element. Call DBIDIter.advance()
to advance the iterator to the next
element for further processing.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.