private class DoubleIntegerDBIDArrayList.Itr extends java.lang.Object implements DoubleIntegerDBIDListMIter
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
pos
Current offset.
|
| Modifier | Constructor and Description |
|---|---|
private |
Itr()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleIntegerDBIDArrayList.Itr |
advance()
Moves the iterator forward to the next entry.
|
DoubleIntegerDBIDArrayList.Itr |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
double |
doubleValue()
Get the double value
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Internal only: Get the internal index.
|
void |
remove()
Remove the object the iterator currently points to.
|
DoubleIntegerDBIDArrayList.Itr |
retract()
Moves the iterator backward to the previous entry.
|
DoubleIntegerDBIDArrayList.Itr |
seek(int off)
Moves the iterator to the given position
|
void |
setDBID(DBIDRef ref)
Update the current DBID value.
|
void |
setDouble(double value)
Update the value at the current position.
|
java.lang.String |
toString() |
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iterpublic DoubleIntegerDBIDArrayList.Itr advance()
Iteradvance in interface DBIDArrayIteradvance in interface DBIDIteradvance in interface DoubleDBIDListIteradvance in interface DoubleIntegerDBIDListIteradvance in interface ArrayIteradvance in interface Iterpublic int getOffset()
ArrayIterpublic DoubleIntegerDBIDArrayList.Itr advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface DoubleDBIDListIteradvance in interface DoubleIntegerDBIDListIteradvance in interface ArrayItercount - offset to move forward or backwardspublic DoubleIntegerDBIDArrayList.Itr retract()
ArrayIterretract in interface DBIDArrayIterretract in interface DoubleDBIDListIterretract in interface DoubleIntegerDBIDListIterretract in interface ArrayIterpublic DoubleIntegerDBIDArrayList.Itr seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface DBIDArrayMIterseek in interface DoubleDBIDListIterseek in interface DoubleDBIDListMIterseek in interface DoubleIntegerDBIDListIterseek in interface DoubleIntegerDBIDListMIterseek in interface ArrayIteroff - Seek offsetpublic int internalGetIndex()
DBIDRefNOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic double doubleValue()
DoubleDBIDListIterdoubleValue in interface DoubleDBIDListIterpublic void remove()
DBIDMIterDBIDUtil.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 void setDBID(DBIDRef ref)
DoubleDBIDListMItersetDBID in interface DBIDArrayMItersetDBID in interface DoubleDBIDListMIterref - Current value.public void setDouble(double value)
DoubleDBIDListMItersetDouble in interface DoubleDBIDListMItervalue - New valuepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.