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 TypeMethodDescriptionboolean
Deprecated.Unsupported operation.boolean
addAll
(Collection<? extends E> c) Deprecated.Unsupported operation.void
clear()
Deprecated.Unsupported operation.boolean
Deprecated.Unsupported operation.poll()
Deprecated.Unsupported operation.remove()
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.AbstractQueue
element
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
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:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classAbstractQueue<E>
- Throws:
UnsupportedOperationException
- always
-
addAll
Deprecated.Unsupported operation.- Specified by:
addAll
in interfaceCollection<E>
- Overrides:
addAll
in classAbstractQueue<E>
- Throws:
UnsupportedOperationException
- always
-
clear
Deprecated.Unsupported operation.- Specified by:
clear
in interfaceCollection<E>
- Overrides:
clear
in 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:
remove
in interfaceQueue<E>
- Overrides:
remove
in classAbstractQueue<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
-