
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
pos
Current position
|
(package private) gnu.trove.list.TIntList |
store
The actual store we use
|
| Constructor and Description |
|---|
TroveArrayDBIDs.DBIDItr(gnu.trove.list.TIntList store)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
int |
compareDBID(DBIDRef o)
Compare two objects by the value of the referenced DBID.
|
boolean |
equals(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.
|
DBID |
getDBID()
Get the referenced
DBID. |
int |
getIntegerID()
Return the integer value of the object ID, if possible.
|
void |
remove()
Remove the object the iterator currently points to.
|
boolean |
sameDBID(DBIDRef other)
Compare the current value of two referenced DBIDs.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
int pos
gnu.trove.list.TIntList store
public TroveArrayDBIDs.DBIDItr(gnu.trove.list.TIntList store)
store - The actual trove storepublic boolean valid()
Iterpublic void advance()
Iterpublic int getIntegerID()
DBIDRefgetIntegerID in interface DBIDRefpublic DBID getDBID()
DBIDIterDBID.
Efficiency note: this may require materialization of a DBID object - if
possible, use DBIDRef based APIs instead.public void remove()
DBIDMIterDBIDIter.getDBID() may return a different element.
Call Iter.advance() to advance the iterator to the next element for further processing.public boolean sameDBID(DBIDRef other)
DBIDRefpublic boolean equals(Object other)
DBIDRefpublic int compareDBID(DBIDRef o)
DBIDRefcompareDBID in interface DBIDRefo - Other DBID or object