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 TypeMethodDescriptionboolean
Deprecated.Unsupported operation.boolean
addAll
(Collection<? extends E> c) Deprecated.Unsupported operation.void
clear()
Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
removeAll
(Collection<?> c) Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
retainAll
(Collection<?> list) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, iterator, size, 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, parallelStream, spliterator, stream, toArray
-
Constructor Details
-
AbstractUnmodifiableCollection
public AbstractUnmodifiableCollection()
-
-
Method Details
-
add
Deprecated.Unsupported operation.- Specified by:
add
in interfaceCollection<E>
- Overrides:
add
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAll
in interfaceCollection<E>
- Overrides:
addAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clear
in interfaceCollection<E>
- Overrides:
clear
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
remove
Deprecated.Unsupported operation.- Specified by:
remove
in interfaceCollection<E>
- Overrides:
remove
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
removeAll
Deprecated.Unsupported operation.- Specified by:
removeAll
in interfaceCollection<E>
- Overrides:
removeAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
removeIf
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-
retainAll
Deprecated.Unsupported operation.- Specified by:
retainAll
in interfaceCollection<E>
- Overrides:
retainAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-