Package elki.database.ids.integer
Class ArrayStaticIntegerDBIDs.Slice.SliceItr
- java.lang.Object
-
- elki.database.ids.integer.ArrayStaticIntegerDBIDs.Slice.SliceItr
-
- All Implemented Interfaces:
DBIDArrayIter,DBIDIter,DBIDRef,IntegerDBIDArrayIter,IntegerDBIDIter,IntegerDBIDRef,ArrayIter,Iter
- Enclosing class:
- ArrayStaticIntegerDBIDs.Slice
private class ArrayStaticIntegerDBIDs.Slice.SliceItr extends java.lang.Object implements IntegerDBIDArrayIter
Iterator class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intposIterator position.
-
Constructor Summary
Constructors Modifier Constructor Description privateSliceItr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayStaticIntegerDBIDs.Slice.SliceItradvance()Moves the iterator forward to the next entry.ArrayStaticIntegerDBIDs.Slice.SliceItradvance(int count)Moves the iterator forward or backward by the given offset.intgetOffset()Get current iterator offset.intinternalGetIndex()Return the integer value of the object ID.ArrayStaticIntegerDBIDs.Slice.SliceItrretract()Moves the iterator backward to the previous entry.ArrayStaticIntegerDBIDs.Slice.SliceItrseek(int off)Moves the iterator to the given positionjava.lang.StringtoString()booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Method Detail
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:IntegerDBIDRefReturn the integer value of the object ID.- Specified by:
internalGetIndexin interfaceDBIDRef- Specified by:
internalGetIndexin interfaceIntegerDBIDRef- Returns:
- integer id
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
advance
public ArrayStaticIntegerDBIDs.Slice.SliceItr advance()
Description copied from interface:IterMoves the iterator forward to the next entry.
-
getOffset
public int getOffset()
Description copied from interface:ArrayIterGet current iterator offset.
-
advance
public ArrayStaticIntegerDBIDs.Slice.SliceItr advance(int count)
Description copied from interface:ArrayIterMoves the iterator forward or backward by the given offset.- Specified by:
advancein interfaceArrayIter- Specified by:
advancein interfaceDBIDArrayIter- Parameters:
count- offset to move forward or backwards- Returns:
- Iterator
-
retract
public ArrayStaticIntegerDBIDs.Slice.SliceItr retract()
Description copied from interface:ArrayIterMoves the iterator backward to the previous entry.- Specified by:
retractin interfaceArrayIter- Specified by:
retractin interfaceDBIDArrayIter- Returns:
- Iterator
-
seek
public ArrayStaticIntegerDBIDs.Slice.SliceItr seek(int off)
Description copied from interface:ArrayIterMoves the iterator to the given position- Specified by:
seekin interfaceArrayIter- Specified by:
seekin interfaceDBIDArrayIter- Parameters:
off- Seek offset- Returns:
- Iterator
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-