private static class IntegerDBIDPair.Itr extends java.lang.Object implements IntegerDBIDArrayIter
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
first
State
|
(package private) int |
pos
State
|
(package private) int |
second
State
|
| Constructor and Description |
|---|
Itr(int first,
int second)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IntegerDBIDPair.Itr |
advance()
Moves the iterator forward to the next entry.
|
DBIDArrayIter |
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.
|
DBIDArrayIter |
retract()
Moves the iterator backward to the previous entry.
|
DBIDArrayIter |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public Itr(int first,
int second)
first - First IDsecond - Second IDpublic boolean valid()
Iterpublic IntegerDBIDPair.Itr advance()
Iterpublic int internalGetIndex()
IntegerDBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic int getOffset()
ArrayIterpublic DBIDArrayIter advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface ArrayItercount - offset to move forward or backwardspublic DBIDArrayIter retract()
ArrayIterretract in interface DBIDArrayIterretract in interface ArrayIterpublic DBIDArrayIter seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface ArrayIteroff - Seek offsetCopyright © 2019 ELKI Development Team. License information.