com.phoenixst.collections

Class CompositeCollection

public class CompositeCollection extends AbstractCollection implements Serializable

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.

Since: 1.0

Version: $Revision: 1.11 $

Author: Ray A. Conner

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
booleanadd(Object object)
booleanaddAll(Collection collection)
voidclear()
booleancontains(Object object)
ListgetOperands()
Returns an unmodifiable List of the argument Collections being used by this CollectionChain.
booleanisEmpty()
Iteratoriterator()
booleanremove(Object object)
booleanremoveAll(Collection collection)
booleanretainAll(Collection collection)
intsize()

Constructor Detail

CompositeCollection

public CompositeCollection(Collection[] collections)
Creates a new CompositeCollection.

CompositeCollection

public CompositeCollection(Collection collections)
Creates a new CompositeCollection.

CompositeCollection

public CompositeCollection(Collection first, Collection second)
Creates a new CompositeCollection.

Method Detail

add

public boolean add(Object object)

addAll

public boolean addAll(Collection collection)

clear

public void clear()

contains

public boolean contains(Object object)

getOperands

public List getOperands()
Returns an unmodifiable List of the argument Collections being used by this CollectionChain.

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

remove

public boolean remove(Object object)

removeAll

public boolean removeAll(Collection collection)

retainAll

public boolean retainAll(Collection collection)

size

public int size()
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.