Package com.google.common.collect
Class ForwardingDeque<E>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingQueue<E>
com.google.common.collect.ForwardingDeque<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Deque<E>,Queue<E>,SequencedCollection<E>
- Direct Known Subclasses:
ForwardingBlockingDeque
@Deprecated(since="2022-12-01")
public abstract class ForwardingDeque<E>
extends ForwardingQueue<E>
implements Deque<E>
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A deque which forwards all its method calls to another deque. Subclasses
should override one or more methods to modify the behavior of the backing
deque as desired per the decorator pattern.
Warning: The methods of ForwardingDeque forward
indiscriminately to the methods of the delegate. For example,
overriding ForwardingCollection.add(E) alone will not change the behavior of ForwardingQueue.offer(E) which can lead to unexpected behavior. In this case, you should
override offer as well.
- Since:
- 12.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.Deprecated.getFirst()Deprecated.getLast()Deprecated.booleanofferFirst(E e) Deprecated.booleanDeprecated.Deprecated.peekLast()Deprecated.Deprecated.pollLast()Deprecated.pop()Deprecated.voidDeprecated.Deprecated.booleanDeprecated.Deprecated.booleanDeprecated.Methods inherited from class com.google.common.collect.ForwardingQueue
element, offer, peek, poll, removeMethods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
addFirst
Deprecated. -
addLast
Deprecated. -
descendingIterator
Deprecated.- Specified by:
descendingIteratorin interfaceDeque<E>
-
getFirst
Deprecated. -
getLast
Deprecated. -
offerFirst
Deprecated.- Specified by:
offerFirstin interfaceDeque<E>
-
offerLast
Deprecated. -
peekFirst
Deprecated. -
peekLast
Deprecated. -
pollFirst
Deprecated. -
pollLast
Deprecated. -
pop
Deprecated. -
push
Deprecated. -
removeFirst
Deprecated.- Specified by:
removeFirstin interfaceDeque<E>- Specified by:
removeFirstin interfaceSequencedCollection<E>
-
removeLast
Deprecated.- Specified by:
removeLastin interfaceDeque<E>- Specified by:
removeLastin interfaceSequencedCollection<E>
-
removeFirstOccurrence
Deprecated.- Specified by:
removeFirstOccurrencein interfaceDeque<E>
-
removeLastOccurrence
Deprecated.- Specified by:
removeLastOccurrencein interfaceDeque<E>
-