java.lang.Object
java.util.AbstractCollection<E>
org.pcollections.AbstractUnmodifiableCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>
- Direct Known Subclasses:
MapPBag
A subclass of AbstractCollection that overrides the various mutator methods to mark them as
deprecated and unconditionally throw UnsupportedOperationException.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Unsupported operation.booleanaddAll(Collection<? extends E> c) Deprecated.Unsupported operation.voidclear()Deprecated.Unsupported operation.booleanDeprecated.Unsupported operation.booleanremoveAll(Collection<?> c) Deprecated.Unsupported operation.booleanDeprecated.Unsupported operation.booleanretainAll(Collection<?> list) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, iterator, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, spliterator, stream, toArray
-
Constructor Details
-
AbstractUnmodifiableCollection
public AbstractUnmodifiableCollection()
-
-
Method Details
-
add
Deprecated.Unsupported operation.- Specified by:
addin interfaceCollection<E>- Overrides:
addin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
remove
Deprecated.Unsupported operation.- Specified by:
removein interfaceCollection<E>- Overrides:
removein classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
removeAll
Deprecated.Unsupported operation.- Specified by:
removeAllin interfaceCollection<E>- Overrides:
removeAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-
removeIf
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
retainAll
Deprecated.Unsupported operation.- Specified by:
retainAllin interfaceCollection<E>- Overrides:
retainAllin classAbstractCollection<E>- Throws:
UnsupportedOperationException- always
-