java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.pcollections.AbstractUnmodifiableQueue<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Queue<E>
- Direct Known Subclasses:
AmortizedPQueue
A subclass of AbstractQueue 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.poll()Deprecated.Unsupported operation.remove()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.AbstractQueue
elementMethods 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
contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, size, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
AbstractUnmodifiableQueue
public AbstractUnmodifiableQueue()
-
-
Method Details
-
add
Deprecated.Unsupported operation.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceQueue<E>- Overrides:
addin classAbstractQueue<E>- Throws:
UnsupportedOperationException- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classAbstractQueue<E>- Throws:
UnsupportedOperationException- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractQueue<E>- Throws:
UnsupportedOperationException- always
-
offer
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
poll
Deprecated.Unsupported operation.- Throws:
UnsupportedOperationException- always
-
remove
Deprecated.Unsupported operation.- Specified by:
removein interfaceQueue<E>- Overrides:
removein classAbstractQueue<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
-