public interface ModifiableDBIDs extends DBIDs
Modifier and Type | Method and Description |
---|---|
boolean |
add(DBIDRef id)
Add a single DBID to the collection.
|
boolean |
addDBIDs(DBIDs ids)
Add DBIDs to collection.
|
void |
clear()
Clear this collection.
|
DBIDMIter |
iter()
Get a modifiable DBID iterator (a more efficient API).
|
DBIDVar |
pop(DBIDVar outvar)
Pop (get and remove) one DBID from the set, into a variable.
|
boolean |
remove(DBIDRef id)
Remove a single DBID from the collection.
|
boolean |
removeDBIDs(DBIDs ids)
Remove DBIDs from collection.
|
boolean addDBIDs(DBIDs ids)
ids
- IDs to add.true
if the collection changed.boolean removeDBIDs(DBIDs ids)
ids
- IDs to remove.true
if the collection changed.boolean add(DBIDRef id)
id
- ID to addtrue
if the collection changed.boolean remove(DBIDRef id)
id
- ID to removetrue
if the collection changed.void clear()
DBIDMIter iter()
for(DBIDMIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
iter.remove();
}
Copyright © 2019 ELKI Development Team. License information.