public class MergedDBIDs extends Object implements DBIDs, Collection<DBID>
Modifier and Type | Field and Description |
---|---|
(package private) DBIDs[] |
childs
Childs to merge
|
Constructor and Description |
---|
MergedDBIDs(DBIDs... childs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(DBID e) |
boolean |
addAll(Collection<? extends DBID> c) |
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs
|
void |
clear() |
boolean |
contains(Object o)
Test whether an ID is contained.
|
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty()
Test for an empty DBID collection.
|
Iterator<DBID> |
iterator()
Retrieve Iterator access to the IDs.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size()
Retrieve the collection / data size.
|
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
DBIDs[] childs
public MergedDBIDs(DBIDs... childs)
childs
- public Collection<DBID> asCollection()
DBIDs
asCollection
in interface DBIDs
public Iterator<DBID> iterator()
DBIDs
public int size()
DBIDs
size
in interface DBIDs
size
in interface Collection<DBID>
public boolean isEmpty()
DBIDs
isEmpty
in interface DBIDs
isEmpty
in interface Collection<DBID>
public Object[] toArray()
toArray
in interface Collection<DBID>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<DBID>
public boolean contains(Object o)
DBIDs
Collection
.contains
in interface DBIDs
contains
in interface Collection<DBID>
o
- object to testpublic boolean containsAll(Collection<?> c)
containsAll
in interface Collection<DBID>
public void clear()
clear
in interface Collection<DBID>
public boolean add(DBID e)
add
in interface Collection<DBID>
public boolean addAll(Collection<? extends DBID> c)
addAll
in interface Collection<DBID>
public boolean remove(Object o)
remove
in interface Collection<DBID>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<DBID>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<DBID>