Package com.google.common.collect
Class Synchronized.SynchronizedDeque<E>
- java.lang.Object
-
- com.google.common.collect.Synchronized.SynchronizedObject
-
- com.google.common.collect.Synchronized.SynchronizedCollection<E>
-
- com.google.common.collect.Synchronized.SynchronizedQueue<E>
-
- com.google.common.collect.Synchronized.SynchronizedDeque<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Deque<E>
,java.util.Queue<E>
- Enclosing class:
- Synchronized
private static final class Synchronized.SynchronizedDeque<E> extends Synchronized.SynchronizedQueue<E> implements java.util.Deque<E>
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.google.common.collect.Synchronized.SynchronizedObject
delegate, mutex
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDeque(java.util.Deque<E> delegate, java.lang.Object mutex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFirst(E e)
void
addLast(E e)
(package private) java.util.Deque<E>
delegate()
java.util.Iterator<E>
descendingIterator()
E
getFirst()
E
getLast()
boolean
offerFirst(E e)
boolean
offerLast(E e)
E
peekFirst()
E
peekLast()
E
pollFirst()
E
pollLast()
E
pop()
void
push(E e)
E
removeFirst()
boolean
removeFirstOccurrence(java.lang.Object o)
E
removeLast()
boolean
removeLastOccurrence(java.lang.Object o)
-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedQueue
element, offer, peek, poll, remove
-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedObject
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
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynchronizedDeque
SynchronizedDeque(java.util.Deque<E> delegate, @Nullable java.lang.Object mutex)
-
-
Method Detail
-
delegate
java.util.Deque<E> delegate()
- Overrides:
delegate
in classSynchronized.SynchronizedQueue<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object o)
- Specified by:
removeFirstOccurrence
in interfacejava.util.Deque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object o)
- Specified by:
removeLastOccurrence
in interfacejava.util.Deque<E>
-
-