Interface MIter
-
- All Superinterfaces:
Iter
- All Known Subinterfaces:
DBIDArrayMIter
,DBIDMIter
,DoubleDBIDListMIter
,DoubleIntegerDBIDListMIter
,IntegerDBIDArrayMIter
,IntegerDBIDMIter
- All Known Implementing Classes:
ArrayModifiableIntegerDBIDs.Itr
,DoubleIntegerDBIDArrayList.Itr
,EmptyDBIDs.EmptyDBIDIterator
,FastutilIntOpenHashSetModifiableDBIDs.Itr
public interface MIter extends Iter
Modifiable iterator, that also supports removal.Usage example:
for (MIter iter = ids.iter(); iter.valid(); iter.advance()) { if (testSomething(iter)) { iter.remove(); continue; // Iterator may point to something else } }
- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
remove()
Remove the object the iterator currently points to.
-