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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Deque<E>
,java.util.Queue<E>
- Direct Known Subclasses:
ForwardingBlockingDeque
@Deprecated(since="2022-12-01") public abstract class ForwardingDeque<E> extends ForwardingQueue<E> implements java.util.Deque<E>
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A 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, overridingForwardingCollection.add(E)
alone will not change the behavior ofForwardingQueue.offer(E)
which can lead to unexpected behavior. In this case, you should overrideoffer
as well.- Since:
- 12.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addFirst(E e)
Deprecated.void
addLast(E e)
Deprecated.java.util.Iterator<E>
descendingIterator()
Deprecated.E
getFirst()
Deprecated.E
getLast()
Deprecated.boolean
offerFirst(E e)
Deprecated.boolean
offerLast(E e)
Deprecated.E
peekFirst()
Deprecated.E
peekLast()
Deprecated.E
pollFirst()
Deprecated.E
pollLast()
Deprecated.E
pop()
Deprecated.void
push(E e)
Deprecated.E
removeFirst()
Deprecated.boolean
removeFirstOccurrence(java.lang.Object o)
Deprecated.E
removeLast()
Deprecated.boolean
removeLastOccurrence(java.lang.Object o)
Deprecated.-
Methods inherited from class com.google.common.collect.ForwardingQueue
element, offer, peek, poll, remove
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
addFirst
public void addFirst(E e)
Deprecated.- Specified by:
addFirst
in interfacejava.util.Deque<E>
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
Deprecated.- Specified by:
descendingIterator
in interfacejava.util.Deque<E>
-
offerFirst
public boolean offerFirst(E e)
Deprecated.- Specified by:
offerFirst
in interfacejava.util.Deque<E>
-
offerLast
public boolean offerLast(E e)
Deprecated.- Specified by:
offerLast
in interfacejava.util.Deque<E>
-
removeFirst
public E removeFirst()
Deprecated.- Specified by:
removeFirst
in interfacejava.util.Deque<E>
-
removeLast
public E removeLast()
Deprecated.- Specified by:
removeLast
in interfacejava.util.Deque<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object o)
Deprecated.- Specified by:
removeFirstOccurrence
in interfacejava.util.Deque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
Deprecated.- Specified by:
removeLastOccurrence
in interfacejava.util.Deque<E>
-
-