private static class IntegerDBIDPair.Itr extends 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 |
---|
IntegerDBIDPair.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 IntegerDBIDPair.Itr(int first, int second)
first
- First IDsecond
- Second IDpublic boolean valid()
Iter
public IntegerDBIDPair.Itr advance()
Iter
public int internalGetIndex()
IntegerDBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public int getOffset()
ArrayIter
public DBIDArrayIter advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic DBIDArrayIter retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface ArrayIter
public DBIDArrayIter seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface ArrayIter
off
- Seek offsetCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.