
public class GenericTreeSetModifiableDBIDs extends TreeSet<DBID> implements TreeSetModifiableDBIDs
DBIDFactory!
Use DBIDUtil.newTreeSet()!| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serial version
|
| Constructor and Description |
|---|
GenericTreeSetModifiableDBIDs()
Constructor without extra hints
|
GenericTreeSetModifiableDBIDs(DBIDs c)
Constructor from existing DBIDs.
|
GenericTreeSetModifiableDBIDs(int initialCapacity)
Constructor with size hint.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSetequals, hashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitceiling, descendingIterator, descendingSet, floor, headSet, headSet, higher, iterator, lower, pollFirst, pollLast, subSet, subSet, tailSet, tailSetcomparator, first, lastprivate static final long serialVersionUID
public GenericTreeSetModifiableDBIDs(int initialCapacity)
initialCapacity - Size hintpublic GenericTreeSetModifiableDBIDs()
public GenericTreeSetModifiableDBIDs(DBIDs c)
c - Existing DBIDs.public Collection<DBID> asCollection()
DBIDsasCollection in interface DBIDspublic 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 modified