java.lang.Iterable<T>
, java.util.Collection<T>
public class MultiCollection<T>
extends java.lang.Object
implements java.util.Collection<T>
Constructor | Description |
---|---|
MultiCollection(java.util.Collection<T>... colls) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(T arg0) |
|
boolean |
addAll(java.util.Collection<? extends T> arg0) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
boolean |
isEmpty() |
|
java.util.Iterator<T> |
iterator() |
|
boolean |
remove(java.lang.Object arg0) |
|
boolean |
removeAll(java.util.Collection<?> arg0) |
|
boolean |
retainAll(java.util.Collection<?> arg0) |
|
int |
size() |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] arg0) |
public MultiCollection(java.util.Collection<T>... colls)
public boolean addAll(java.util.Collection<? extends T> arg0)
addAll
in interface java.util.Collection<T>
public void clear()
clear
in interface java.util.Collection<T>
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<T>
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<T>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<T>
public boolean removeAll(java.util.Collection<?> arg0)
removeAll
in interface java.util.Collection<T>
public boolean retainAll(java.util.Collection<?> arg0)
retainAll
in interface java.util.Collection<T>
public int size()
size
in interface java.util.Collection<T>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <T> T[] toArray(T[] arg0)
toArray
in interface java.util.Collection<T>