public class CompositeCollection extends AbstractCollection implements Serializable
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 and Description |
|---|
CompositeCollection(Collection collections)
Creates a new
CompositeCollection. |
CompositeCollection(Collection[] collections)
Creates a new
CompositeCollection. |
CompositeCollection(Collection first,
Collection second)
Creates a new
CompositeCollection. |
| Modifier and Type | Method and Description |
|---|---|
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() |
containsAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic CompositeCollection(Collection[] collections)
CompositeCollection.public CompositeCollection(Collection collections)
CompositeCollection.public CompositeCollection(Collection first, Collection second)
CompositeCollection.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.See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.