private static final class IntegerDBIDRange.Itr extends java.lang.Object implements IntegerDBIDArrayIter
| Modifier and Type | Field and Description |
|---|---|
private int |
len
Interval length.
|
private int |
pos
Current position.
|
private int |
start
Interval start.
|
| Constructor and Description |
|---|
Itr(int start,
int len)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IntegerDBIDRange.Itr |
advance()
Moves the iterator forward to the next entry.
|
IntegerDBIDRange.Itr |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
boolean |
equals(java.lang.Object other)
WARNING: calling equality on a reference may be an indicator of
incorrect usage, as it is not clear whether the programmer meant the
references to be the same or the DBIDs.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Return the integer value of the object ID.
|
IntegerDBIDRange.Itr |
retract()
Moves the iterator backward to the previous entry.
|
IntegerDBIDRange.Itr |
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.
|
private int pos
private final int len
private final int start
public Itr(int start,
int len)
start - Interval startlen - Interval lengthpublic boolean valid()
Iterpublic IntegerDBIDRange.Itr advance()
Iterpublic IntegerDBIDRange.Itr advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface ArrayItercount - offset to move forward or backwardspublic IntegerDBIDRange.Itr retract()
ArrayIterretract in interface DBIDArrayIterretract in interface ArrayIterpublic IntegerDBIDRange.Itr seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface ArrayIteroff - Seek offsetpublic int getOffset()
ArrayIterpublic int internalGetIndex()
IntegerDBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic boolean equals(java.lang.Object other)
DBIDRef
Use DBIDUtil.equal(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef) or DBIDUtil.compare(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)!
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.