Plexus v0.13.1

com.phoenixst.collections
Class AbstractUnmodifiableCollection

java.lang.Object
  extended by java.util.AbstractCollection
      extended by 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

Constructor Summary
protected AbstractUnmodifiableCollection()
          Protected constructor, called implicitly by subclasses.
 
Method Summary
 boolean addAll(Collection collection)
           
 void clear()
           
 boolean remove(Object object)
           
 boolean removeAll(Collection collection)
           
 boolean retainAll(Collection collection)
           
 int size()
          This implementation counts the number of elements accessed by the Iterator.
 
Methods inherited from class java.util.AbstractCollection
add, contains, containsAll, isEmpty, iterator, 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

AbstractUnmodifiableCollection

protected AbstractUnmodifiableCollection()
Protected constructor, called implicitly by subclasses.

Method Detail

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

Plexus v0.13.1

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.