com.phoenixst.collections

Class AbstractUnmodifiableCollection

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
booleanaddAll(Collection collection)
voidclear()
booleanremove(Object object)
booleanremoveAll(Collection collection)
booleanretainAll(Collection collection)
intsize()
This implementation counts the number of elements accessed by the Iterator.

Constructor Detail

AbstractUnmodifiableCollection

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

Method Detail

addAll

public boolean addAll(Collection collection)

clear

public void clear()

remove

public boolean remove(Object object)

removeAll

public boolean removeAll(Collection collection)

retainAll

public boolean retainAll(Collection collection)

size

public int size()
This implementation counts the number of elements accessed by the Iterator.
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.