Package elki.database.ids.integer
Class FastutilIntOpenHashSetModifiableDBIDs.Itr
- java.lang.Object
-
- elki.database.ids.integer.FastutilIntOpenHashSetModifiableDBIDs.Itr
-
- All Implemented Interfaces:
DBIDIter
,DBIDMIter
,DBIDRef
,IntegerDBIDIter
,IntegerDBIDMIter
,IntegerDBIDRef
,Iter
,MIter
- Enclosing class:
- FastutilIntOpenHashSetModifiableDBIDs
protected static class FastutilIntOpenHashSetModifiableDBIDs.Itr extends java.lang.Object implements IntegerDBIDMIter
Iterator over Fastutil hashs.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description Itr(it.unimi.dsi.fastutil.ints.IntIterator it)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerDBIDMIter
advance()
Moves the iterator forward to the next entry.int
internalGetIndex()
Internal only: Get the internal index.void
remove()
Remove the object the iterator currently points to.java.lang.String
toString()
boolean
valid()
Returns true if the iterator currently points to a valid object.
-
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:Iter
Returns true if the iterator currently points to a valid object.
-
advance
public IntegerDBIDMIter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:DBIDRef
Internal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndex
in interfaceDBIDRef
- Specified by:
internalGetIndex
in interfaceIntegerDBIDRef
- Returns:
- Internal index
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
remove
public void remove()
Description copied from interface:DBIDMIter
Remove the object the iterator currently points to. Note: Subsequent calls toDBIDUtil.deref(elki.database.ids.DBIDRef)
may return a different element. CallDBIDIter.advance()
to advance the iterator to the next element for further processing.
-
-