Package elki.database.ids
Interface DBIDArrayMIter
-
- All Known Subinterfaces:
DoubleDBIDListMIter
,DoubleIntegerDBIDListMIter
,IntegerDBIDArrayMIter
- All Known Implementing Classes:
ArrayModifiableIntegerDBIDs.Itr
,DoubleIntegerDBIDArrayList.Itr
,EmptyDBIDs.EmptyDBIDIterator
public interface DBIDArrayMIter extends DBIDArrayIter, DBIDMIter
Modifiable array iterator.- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DBIDArrayMIter
seek(int off)
Moves the iterator to the given positionvoid
setDBID(DBIDRef val)
Set the current value.-
Methods inherited from interface elki.database.ids.DBIDArrayIter
advance, advance, retract
-
Methods inherited from interface elki.database.ids.DBIDRef
equals, hashCode, internalGetIndex
-
-
-
-
Method Detail
-
setDBID
void setDBID(DBIDRef val)
Set the current value. Note: if the iterator is just after the last position, this may be equivalent to an add, but some implementations may not support this operation!- Parameters:
val
- new value
-
seek
DBIDArrayMIter 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
-
-