com.phoenixst.collections
Class AbstractUnmodifiableCollection
java.lang.Object
java.util.AbstractCollection
com.phoenixst.collections.AbstractUnmodifiableCollection
- All Implemented Interfaces:
- Iterable, Collection
- Direct Known Subclasses:
- AbstractIntegerNodeGraph.AbstractIntegerEdgeCollection, CartesianProduct, UnorderedPair
public abstract class AbstractUnmodifiableCollection
- extends AbstractCollection
An extension of AbstractCollection in which all modifying
operations explicitly throw exceptions.
- Since:
- 1.0
- Version:
- $Revision: 1.6 $
- Author:
- Ray A. Conner
AbstractUnmodifiableCollection
protected AbstractUnmodifiableCollection()
- Protected constructor, called implicitly by subclasses.
size
public int size()
- This implementation counts the number of elements accessed by
the
Iterator.
- Specified by:
size in interface Collection- Specified by:
size in class AbstractCollection
remove
public boolean remove(Object object)
- Specified by:
remove in interface Collection- Overrides:
remove in class AbstractCollection
addAll
public boolean addAll(Collection collection)
- Specified by:
addAll in interface Collection- Overrides:
addAll in class AbstractCollection
removeAll
public boolean removeAll(Collection collection)
- Specified by:
removeAll in interface Collection- Overrides:
removeAll in class AbstractCollection
retainAll
public boolean retainAll(Collection collection)
- Specified by:
retainAll in interface Collection- Overrides:
retainAll in class AbstractCollection
clear
public void clear()
- Specified by:
clear in interface Collection- Overrides:
clear in class AbstractCollection
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.