public abstract class AbstractUnmodifiableCollection extends AbstractCollection
AbstractCollection in which all modifying
operations explicitly throw exceptions.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUnmodifiableCollection()
Protected constructor, called implicitly by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
add, contains, containsAll, isEmpty, iterator, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodeprotected AbstractUnmodifiableCollection()
public int size()
Iterator.size in interface Collectionsize in class AbstractCollectionpublic boolean remove(Object object)
remove in interface Collectionremove 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 AbstractCollectionSee 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.