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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
protected AbstractUnmodifiableCollection()
public int size()
Iterator
.size
in interface Collection
size
in class AbstractCollection
public boolean remove(Object object)
remove
in interface Collection
remove
in class AbstractCollection
public boolean addAll(Collection collection)
addAll
in interface Collection
addAll
in class AbstractCollection
public boolean removeAll(Collection collection)
removeAll
in interface Collection
removeAll
in class AbstractCollection
public boolean retainAll(Collection collection)
retainAll
in interface Collection
retainAll
in class AbstractCollection
public void clear()
clear
in interface Collection
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.