|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection com.phoenixst.collections.CompositeCollection
public class CompositeCollection
A Collection
view of a number of other
Collections
. New elements are added to the last
Collection
and elements are removed from the first
Collection
in which they are found.
Constructor Summary | |
---|---|
CompositeCollection(Collection collections)
Creates a new CompositeCollection . |
|
CompositeCollection(Collection[] collections)
Creates a new CompositeCollection . |
|
CompositeCollection(Collection first,
Collection second)
Creates a new CompositeCollection . |
Method Summary | |
---|---|
boolean |
add(Object object)
|
boolean |
addAll(Collection collection)
|
void |
clear()
|
boolean |
contains(Object object)
|
List |
getOperands()
Returns an unmodifiable List of the argument
Collections being used by this
CollectionChain . |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object object)
|
boolean |
removeAll(Collection collection)
|
boolean |
retainAll(Collection collection)
|
int |
size()
|
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public CompositeCollection(Collection[] collections)
CompositeCollection
.
public CompositeCollection(Collection collections)
CompositeCollection
.
public CompositeCollection(Collection first, Collection second)
CompositeCollection
.
Method Detail |
---|
public int size()
size
in interface Collection
size
in class AbstractCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in class AbstractCollection
public boolean add(Object object)
add
in interface Collection
add
in class AbstractCollection
public boolean remove(Object object)
remove
in interface Collection
remove
in class AbstractCollection
public boolean contains(Object object)
contains
in interface Collection
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in class AbstractCollection
public boolean addAll(Collection collection)
addAll
in interface Collection
addAll
in class AbstractCollection
public boolean removeAll(Collection collection)
removeAll
in interface Collection
removeAll
in class AbstractCollection
public boolean retainAll(Collection collection)
retainAll
in interface Collection
retainAll
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in class AbstractCollection
public List getOperands()
List
of the argument
Collections
being used by this
CollectionChain
.
|
Plexus v0.13.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |