Package elki.database.ids.integer
Class UnmodifiableIntegerDBIDs.UnmodifiableDBIDIter
- java.lang.Object
-
- elki.database.ids.integer.UnmodifiableIntegerDBIDs.UnmodifiableDBIDIter
-
- All Implemented Interfaces:
DBIDIter
,DBIDRef
,IntegerDBIDIter
,IntegerDBIDRef
,Iter
- Enclosing class:
- UnmodifiableIntegerDBIDs
static class UnmodifiableIntegerDBIDs.UnmodifiableDBIDIter extends java.lang.Object implements IntegerDBIDIter
Make an existing DBIDMIter unmodifiable.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerDBIDIter
it
Wrapped iterator.
-
Constructor Summary
Constructors Constructor Description UnmodifiableDBIDIter(IntegerDBIDIter it)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBIDIter
advance()
Moves the iterator forward to the next entry.int
internalGetIndex()
Return the integer value of the object ID.boolean
valid()
Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
it
private IntegerDBIDIter it
Wrapped iterator.
-
-
Constructor Detail
-
UnmodifiableDBIDIter
public UnmodifiableDBIDIter(IntegerDBIDIter it)
Constructor.- Parameters:
it
- inner iterator
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:Iter
Returns true if the iterator currently points to a valid object.
-
advance
public DBIDIter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:IntegerDBIDRef
Return the integer value of the object ID.- Specified by:
internalGetIndex
in interfaceDBIDRef
- Specified by:
internalGetIndex
in interfaceIntegerDBIDRef
- Returns:
- integer id
-
-