Package elki.database.ids
Interface DoubleDBIDListIter
-
- All Superinterfaces:
ArrayIter
,DBIDArrayIter
,DBIDIter
,DBIDRef
,DoubleDBIDIter
,Iter
- All Known Subinterfaces:
DoubleDBIDListMIter
,DoubleIntegerDBIDListIter
,DoubleIntegerDBIDListMIter
- All Known Implementing Classes:
DoubleIntegerDBIDArrayList.Itr
,DoubleIntegerDBIDSubList.Itr
,IntegerDBIDKNNSubList.Itr
public interface DoubleDBIDListIter extends DoubleDBIDIter, DBIDArrayIter
Iterator over Double+DBID pairs results.There is no getter for the DBID, as this implements
DBIDRef
.- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static DoubleDBIDListIter
EMPTY
Static empty iterator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleDBIDListIter
advance()
Moves the iterator forward to the next entry.DoubleDBIDListIter
advance(int count)
Moves the iterator forward or backward by the given offset.DoubleDBIDListIter
retract()
Moves the iterator backward to the previous entry.DoubleDBIDListIter
seek(int off)
Moves the iterator to the given position-
Methods inherited from interface elki.database.ids.DBIDRef
equals, hashCode, internalGetIndex
-
Methods inherited from interface elki.database.ids.DoubleDBIDIter
doubleValue
-
-
-
-
Field Detail
-
EMPTY
static final DoubleDBIDListIter EMPTY
Static empty iterator.
-
-
Method Detail
-
advance
DoubleDBIDListIter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.- Specified by:
advance
in interfaceArrayIter
- Specified by:
advance
in interfaceDBIDArrayIter
- Specified by:
advance
in interfaceDBIDIter
- Specified by:
advance
in interfaceDoubleDBIDIter
- Specified by:
advance
in interfaceIter
- Returns:
- The iterator itself.
-
advance
DoubleDBIDListIter advance(int count)
Description copied from interface:ArrayIter
Moves the iterator forward or backward by the given offset.- Specified by:
advance
in interfaceArrayIter
- Specified by:
advance
in interfaceDBIDArrayIter
- Parameters:
count
- offset to move forward or backwards- Returns:
- Iterator
-
retract
DoubleDBIDListIter retract()
Description copied from interface:ArrayIter
Moves the iterator backward to the previous entry.- Specified by:
retract
in interfaceArrayIter
- Specified by:
retract
in interfaceDBIDArrayIter
- Returns:
- Iterator
-
seek
DoubleDBIDListIter seek(int off)
Description copied from interface:ArrayIter
Moves the iterator to the given position- Specified by:
seek
in interfaceArrayIter
- Specified by:
seek
in interfaceDBIDArrayIter
- Parameters:
off
- Seek offset- Returns:
- Iterator
-
-