
class TroveHashSetModifiableDBIDs extends Object implements HashSetModifiableDBIDs, IntegerDBIDs
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
TroveHashSetModifiableDBIDs.DBIDItr
Iterator over trove hashs. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) gnu.trove.set.hash.TIntHashSet | 
store
The actual store. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
TroveHashSetModifiableDBIDs()
Constructor. 
 | 
protected  | 
TroveHashSetModifiableDBIDs(DBIDs existing)
Constructor. 
 | 
protected  | 
TroveHashSetModifiableDBIDs(int size)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(DBIDRef e)
Add a single DBID to the collection. 
 | 
boolean | 
addDBIDs(DBIDs ids)
Add DBIDs to collection. 
 | 
void | 
clear()
Clear this collection. 
 | 
boolean | 
contains(DBIDRef o)
Test whether an ID is contained. 
 | 
boolean | 
isEmpty()
Test for an empty DBID collection. 
 | 
IntegerDBIDMIter | 
iter()
Get a DBID iterator (a more efficient API). 
 | 
boolean | 
remove(DBIDRef o)
Remove a single DBID from the collection. 
 | 
boolean | 
removeDBIDs(DBIDs ids)
Remove DBIDs from collection. 
 | 
boolean | 
retainAll(DBIDs set)
Retain all elements that also are in the second set. 
 | 
int | 
size()
Retrieve the collection / data size. 
 | 
String | 
toString()  | 
protected TroveHashSetModifiableDBIDs(int size)
size - Initial sizeprotected TroveHashSetModifiableDBIDs()
protected TroveHashSetModifiableDBIDs(DBIDs existing)
existing - Existing IDspublic IntegerDBIDMIter iter()
DBIDs
 for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
   DBID id = iter.getDBID();
 }
 
 iter in interface DBIDsiter in interface HashSetModifiableDBIDsiter in interface IntegerDBIDsiter in interface ModifiableDBIDspublic boolean addDBIDs(DBIDs ids)
ModifiableDBIDsaddDBIDs in interface ModifiableDBIDsids - IDs to add.true when modifiedpublic boolean removeDBIDs(DBIDs ids)
ModifiableDBIDsremoveDBIDs in interface ModifiableDBIDsids - IDs to remove.true when modifiedpublic boolean add(DBIDRef e)
ModifiableDBIDsadd in interface ModifiableDBIDse - ID to addpublic boolean remove(DBIDRef o)
ModifiableDBIDsremove in interface ModifiableDBIDso - ID to removepublic boolean retainAll(DBIDs set)
HashSetModifiableDBIDsretainAll in interface HashSetModifiableDBIDsset - second setpublic int size()
DBIDspublic boolean isEmpty()
DBIDspublic void clear()
ModifiableDBIDsclear in interface ModifiableDBIDspublic boolean contains(DBIDRef o)
DBIDs