public class GenericArrayModifiableDBIDs extends ArrayList<DBID> implements ArrayModifiableDBIDs
DBIDFactory
!
Use DBIDUtil.newArray()
!Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serial version
|
modCount
Constructor and Description |
---|
GenericArrayModifiableDBIDs()
Constructor without extra hints
|
GenericArrayModifiableDBIDs(DBIDs c)
Constructor from existing DBIDs.
|
GenericArrayModifiableDBIDs(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, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
public GenericArrayModifiableDBIDs(int initialCapacity)
initialCapacity
- Size hintpublic GenericArrayModifiableDBIDs()
public GenericArrayModifiableDBIDs(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