private class ArrayStaticIntegerDBIDs.Slice.SliceItr extends java.lang.Object implements IntegerDBIDArrayIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
private |
SliceItr() |
Modifier and Type | Method and Description |
---|---|
ArrayStaticIntegerDBIDs.Slice.SliceItr |
advance()
Moves the iterator forward to the next entry.
|
ArrayStaticIntegerDBIDs.Slice.SliceItr |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Return the integer value of the object ID.
|
ArrayStaticIntegerDBIDs.Slice.SliceItr |
retract()
Moves the iterator backward to the previous entry.
|
ArrayStaticIntegerDBIDs.Slice.SliceItr |
seek(int off)
Moves the iterator to the given position
|
java.lang.String |
toString() |
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public int internalGetIndex()
IntegerDBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public boolean valid()
Iter
public ArrayStaticIntegerDBIDs.Slice.SliceItr advance()
Iter
public int getOffset()
ArrayIter
public ArrayStaticIntegerDBIDs.Slice.SliceItr advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic ArrayStaticIntegerDBIDs.Slice.SliceItr retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface ArrayIter
public ArrayStaticIntegerDBIDs.Slice.SliceItr seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface ArrayIter
off
- Seek offsetpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.