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).
|
void |
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
when modifiedboolean removeDBIDs(DBIDs ids)
ids
- IDs to remove.true
when modifiedboolean add(DBIDRef id)
id
- ID to addboolean remove(DBIDRef id)
id
- ID to removevoid clear()
DBIDMIter iter()
for(DBIDMIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
iter.remove();
}
void pop(DBIDVar outvar)
outvar
- Output variableCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.