|
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.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 Collectionsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in class AbstractCollectionpublic boolean add(Object object)
add in interface Collectionadd in class AbstractCollectionpublic boolean remove(Object object)
remove in interface Collectionremove in class AbstractCollectionpublic boolean contains(Object object)
contains in interface Collectioncontains in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in class AbstractCollectionpublic boolean addAll(Collection collection)
addAll in interface CollectionaddAll in class AbstractCollectionpublic boolean removeAll(Collection collection)
removeAll in interface CollectionremoveAll in class AbstractCollectionpublic boolean retainAll(Collection collection)
retainAll in interface CollectionretainAll in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in class AbstractCollectionpublic 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 | ||||||||