|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<DBID>
de.lmu.ifi.dbs.elki.database.ids.generic.GenericHashSetModifiableDBIDs
public class GenericHashSetModifiableDBIDs

Set-oriented implementation of a modifiable DBID collection.
This should only be instantiated by a DBIDFactory!
Use DBIDUtil.newHashSet()!
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Serial version |
| Constructor Summary | |
|---|---|
GenericHashSetModifiableDBIDs()
Constructor without extra hints |
|
GenericHashSetModifiableDBIDs(DBIDs c)
Constructor from existing DBIDs. |
|
GenericHashSetModifiableDBIDs(int initialCapacity)
Constructor with size hint. |
|
| Method Summary | |
|---|---|
boolean |
addDBIDs(DBIDs ids)
Add DBIDs to collection. |
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs |
boolean |
removeDBIDs(DBIDs ids)
Remove DBIDs from collection. |
boolean |
retainAll(DBIDs ids)
Retain all elements that also are in the second set. |
| Methods inherited from class java.util.HashSet |
|---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.database.ids.DBIDs |
|---|
contains, isEmpty, size |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public GenericHashSetModifiableDBIDs(int initialCapacity)
initialCapacity - Size hintpublic GenericHashSetModifiableDBIDs()
public GenericHashSetModifiableDBIDs(DBIDs c)
c - Existing DBIDs.| Method Detail |
|---|
public Collection<DBID> asCollection()
DBIDs
asCollection in interface DBIDspublic boolean addDBIDs(DBIDs ids)
ModifiableDBIDs
addDBIDs in interface ModifiableDBIDsids - IDs to add.
true when modifiedpublic boolean removeDBIDs(DBIDs ids)
ModifiableDBIDs
removeDBIDs in interface ModifiableDBIDsids - IDs to remove.
true when modifiedpublic boolean retainAll(DBIDs ids)
HashSetModifiableDBIDs
retainAll in interface HashSetModifiableDBIDsids - second set
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||