
protected static class TroveHashSetModifiableDBIDs.DBIDItr extends gnu.trove.impl.hash.THashPrimitiveIterator implements DBIDMIter
| Modifier and Type | Field and Description |
|---|---|
private gnu.trove.impl.hash.TIntHash |
hash
The has we access
|
| Constructor and Description |
|---|
TroveHashSetModifiableDBIDs.DBIDItr(gnu.trove.impl.hash.TIntHash hash)
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.
|
DBID |
getDBID()
Get the referenced
DBID. |
int |
getIntegerID()
Return the integer value of the object ID, if possible.
|
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.
|
hasNext, moveToNextIndex, nextIndex, removepublic TroveHashSetModifiableDBIDs.DBIDItr(gnu.trove.impl.hash.TIntHash hash)
hash - Trove hashpublic 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 boolean sameDBID(DBIDRef other)
DBIDRefpublic int compareDBID(DBIDRef o)
DBIDRefcompareDBID in interface DBIDRefo - Other DBID or object