- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- org.pcollections.AbstractUnmodifiableQueue<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Queue<E>
- Direct Known Subclasses:
AmortizedPQueue
public abstract class AbstractUnmodifiableQueue<E> extends java.util.AbstractQueue<E>
A subclass of AbstractQueue that overrides the various mutator methods to mark them as deprecated and unconditionally throw UnsupportedOperationException.
-
-
Constructor Summary
Constructors Constructor Description AbstractUnmodifiableQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
add(E e)
Deprecated.Unsupported operation.boolean
addAll(java.util.Collection<? extends E> c)
Deprecated.Unsupported operation.void
clear()
Deprecated.Unsupported operation.boolean
offer(E e)
Deprecated.Unsupported operation.E
poll()
Deprecated.Unsupported operation.E
remove()
Deprecated.Unsupported operation.boolean
remove(java.lang.Object o)
Deprecated.Unsupported operation.boolean
removeAll(java.util.Collection<?> c)
Deprecated.Unsupported operation.boolean
removeIf(java.util.function.Predicate<? super E> filter)
Deprecated.Unsupported operation.boolean
retainAll(java.util.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
-
-
-
-
Method Detail
-
add
@Deprecated public boolean add(E e)
Deprecated.Unsupported operation.
-
addAll
@Deprecated public boolean addAll(java.util.Collection<? extends E> c)
Deprecated.Unsupported operation.
-
clear
@Deprecated public void clear()
Deprecated.Unsupported operation.
-
offer
@Deprecated public boolean offer(E e)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
poll
@Deprecated public E poll()
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
remove
@Deprecated public E remove()
Deprecated.Unsupported operation.
-
remove
@Deprecated public boolean remove(java.lang.Object o)
Deprecated.Unsupported operation.
-
removeAll
@Deprecated public boolean removeAll(java.util.Collection<?> c)
Deprecated.Unsupported operation.
-
removeIf
@Deprecated public boolean removeIf(java.util.function.Predicate<? super E> filter)
Deprecated.Unsupported operation.- Throws:
java.lang.UnsupportedOperationException
- always
-
-