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, tailSet
equals, hashCode, removeAll
containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
ceiling, descendingIterator, descendingSet, floor, headSet, headSet, higher, iterator, lower, pollFirst, pollLast, subSet, subSet, tailSet, tailSet
comparator, first, last
private static final long serialVersionUID
public GenericTreeSetModifiableDBIDs(int initialCapacity)
initialCapacity
- Size hintpublic GenericTreeSetModifiableDBIDs()
public GenericTreeSetModifiableDBIDs(DBIDs c)
c
- Existing DBIDs.public Collection<DBID> asCollection()
DBIDs
asCollection
in interface DBIDs
public boolean addDBIDs(DBIDs ids)
ModifiableDBIDs
addDBIDs
in interface ModifiableDBIDs
ids
- IDs to add.true
when modifiedpublic boolean removeDBIDs(DBIDs ids)
ModifiableDBIDs
removeDBIDs
in interface ModifiableDBIDs
ids
- IDs to remove.true
when modified