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 TypeMethodDescriptionboolean
Deprecated.Unsupported operation.boolean
addAll
(Collection<? extends E> list) Deprecated.Unsupported operation.void
clear()
Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
removeAll
(Collection<?> list) Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.boolean
retainAll
(Collection<?> list) Deprecated.Unsupported operation.Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, iterator, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceSet<E>
- Overrides:
add
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceSet<E>
- Overrides:
addAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceSet<E>
- Overrides:
clear
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
remove
Deprecated.Unsupported operation.- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceSet<E>
- Overrides:
remove
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-
removeAll
Deprecated.Unsupported operation.- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceSet<E>
- Overrides:
removeAll
in classAbstractSet<E>
- Throws:
UnsupportedOperationException
- always
-
removeIf
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException
- always
-
retainAll
Deprecated.Unsupported operation.- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceSet<E>
- Overrides:
retainAll
in classAbstractCollection<E>
- Throws:
UnsupportedOperationException
- always
-