Package elki.database.ids
Interface HashSetModifiableDBIDs
-
- All Superinterfaces:
DBIDs
,HashSetDBIDs
,ModifiableDBIDs
,SetDBIDs
- All Known Implementing Classes:
FastutilIntOpenHashSetModifiableDBIDs
public interface HashSetModifiableDBIDs extends HashSetDBIDs, ModifiableDBIDs
Set-oriented implementation of a modifiable DBID collection.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HashSetModifiableDBIDs
clear()
Clear this collection.DBIDMIter
iter()
Get a DBID iterator (a more efficient API).boolean
retainAll(DBIDs set)
Retain all elements that also are in the second set.-
Methods inherited from interface elki.database.ids.ModifiableDBIDs
add, addDBIDs, pop, remove, removeDBIDs
-
-
-
-
Method Detail
-
retainAll
boolean retainAll(DBIDs set)
Retain all elements that also are in the second set.- Parameters:
set
- second set- Returns:
- true when modified
-
clear
HashSetModifiableDBIDs clear()
Description copied from interface:ModifiableDBIDs
Clear this collection.- Specified by:
clear
in interfaceModifiableDBIDs
-
iter
DBIDMIter iter()
Description copied from interface:DBIDs
Get a DBID iterator (a more efficient API).Example:
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { NumberVector vec = relation.get(iter); // iter is a temporary object reference }
- Specified by:
iter
in interfaceDBIDs
- Specified by:
iter
in interfaceModifiableDBIDs
- Returns:
- iterator
-
-