Package elki.database.ids.integer
Class DoubleIntegerDBIDSubList.Itr
- java.lang.Object
-
- elki.database.ids.integer.DoubleIntegerDBIDSubList.Itr
-
- All Implemented Interfaces:
DBIDArrayIter,DBIDIter,DBIDRef,DoubleDBIDIter,DoubleDBIDListIter,DoubleIntegerDBIDListIter,IntegerDBIDIter,IntegerDBIDRef,ArrayIter,Iter
- Enclosing class:
- DoubleIntegerDBIDSubList
private class DoubleIntegerDBIDSubList.Itr extends java.lang.Object implements DoubleIntegerDBIDListIter
Iterator for the sublist.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleIntegerDBIDListIteritCurrent position.-
Fields inherited from interface elki.database.ids.DoubleDBIDListIter
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description privateItr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleIntegerDBIDSubList.Itradvance()Moves the iterator forward to the next entry.DoubleIntegerDBIDSubList.Itradvance(int count)Moves the iterator forward or backward by the given offset.doubledoubleValue()Get the double valueintgetOffset()Get current iterator offset.intinternalGetIndex()Internal only: Get the internal index.DoubleIntegerDBIDSubList.Itrretract()Moves the iterator backward to the previous entry.DoubleIntegerDBIDSubList.Itrseek(int off)Moves the iterator to the given positionbooleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
it
private DoubleIntegerDBIDListIter it
Current position.
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
advance
public DoubleIntegerDBIDSubList.Itr advance()
Description copied from interface:IterMoves the iterator forward to the next entry.- Specified by:
advancein interfaceArrayIter- Specified by:
advancein interfaceDBIDArrayIter- Specified by:
advancein interfaceDBIDIter- Specified by:
advancein interfaceDoubleDBIDIter- Specified by:
advancein interfaceDoubleDBIDListIter- Specified by:
advancein interfaceDoubleIntegerDBIDListIter- Specified by:
advancein interfaceIter- Returns:
- The iterator itself.
-
doubleValue
public double doubleValue()
Description copied from interface:DoubleDBIDIterGet the double value- Specified by:
doubleValuein interfaceDoubleDBIDIter- Returns:
- double value
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:DBIDRefInternal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndexin interfaceDBIDRef- Specified by:
internalGetIndexin interfaceIntegerDBIDRef- Returns:
- Internal index
-
getOffset
public int getOffset()
Description copied from interface:ArrayIterGet current iterator offset.
-
advance
public DoubleIntegerDBIDSubList.Itr advance(int count)
Description copied from interface:ArrayIterMoves the iterator forward or backward by the given offset.- Specified by:
advancein interfaceArrayIter- Specified by:
advancein interfaceDBIDArrayIter- Specified by:
advancein interfaceDoubleDBIDListIter- Specified by:
advancein interfaceDoubleIntegerDBIDListIter- Parameters:
count- offset to move forward or backwards- Returns:
- Iterator
-
retract
public DoubleIntegerDBIDSubList.Itr retract()
Description copied from interface:ArrayIterMoves the iterator backward to the previous entry.- Specified by:
retractin interfaceArrayIter- Specified by:
retractin interfaceDBIDArrayIter- Specified by:
retractin interfaceDoubleDBIDListIter- Specified by:
retractin interfaceDoubleIntegerDBIDListIter- Returns:
- Iterator
-
seek
public DoubleIntegerDBIDSubList.Itr seek(int off)
Description copied from interface:ArrayIterMoves the iterator to the given position- Specified by:
seekin interfaceArrayIter- Specified by:
seekin interfaceDBIDArrayIter- Specified by:
seekin interfaceDoubleDBIDListIter- Specified by:
seekin interfaceDoubleIntegerDBIDListIter- Parameters:
off- Seek offset- Returns:
- Iterator
-
-