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()
Iter
public DoubleIntegerDBIDArrayList.Itr advance()
Iter
advance
in interface DBIDArrayIter
advance
in interface DBIDIter
advance
in interface DoubleDBIDListIter
advance
in interface DoubleIntegerDBIDListIter
advance
in interface ArrayIter
advance
in interface Iter
public int getOffset()
ArrayIter
public DoubleIntegerDBIDArrayList.Itr advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface DoubleDBIDListIter
advance
in interface DoubleIntegerDBIDListIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic DoubleIntegerDBIDArrayList.Itr retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface DoubleDBIDListIter
retract
in interface DoubleIntegerDBIDListIter
retract
in interface ArrayIter
public DoubleIntegerDBIDArrayList.Itr seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DBIDArrayMIter
seek
in interface DoubleDBIDListIter
seek
in interface DoubleDBIDListMIter
seek
in interface DoubleIntegerDBIDListIter
seek
in interface DoubleIntegerDBIDListMIter
seek
in interface ArrayIter
off
- Seek offsetpublic int internalGetIndex()
DBIDRef
NOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public double doubleValue()
DoubleDBIDListIter
doubleValue
in interface DoubleDBIDListIter
public 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 void setDBID(DBIDRef ref)
DoubleDBIDListMIter
setDBID
in interface DBIDArrayMIter
setDBID
in interface DoubleDBIDListMIter
ref
- Current value.public void setDouble(double value)
DoubleDBIDListMIter
setDouble
in interface DoubleDBIDListMIter
value
- New valuepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.