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