public static <T> Deque<T> unmodifiableDeque(Deque<T> deque)
T
- typedeque
- underlying Deque
to use.deque
public boolean isEmpty()
isEmpty
in interface Collection<E>
public Object[] toArray()
toArray
in interface Collection<E>
public boolean offerFirst(E e)
offerFirst
in interface Deque<E>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
public E removeFirst()
removeFirst
in interface Deque<E>
public E removeLast()
removeLast
in interface Deque<E>
public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface Deque<E>
public boolean removeLastOccurrence(Object o)
removeLastOccurrence
in interface Deque<E>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
public boolean add(E e)
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
public boolean offer(E e)
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
public E remove()
public E poll()
public E element()
public boolean removeIf(Predicate<? super E> filter)
removeIf
in interface Collection<E>
public E peek()
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
public boolean remove(Object o)
public void clear()
clear
in interface Collection<E>
public boolean equals(Object o)
equals
in interface Collection<E>
equals
in class Object
public boolean contains(Object o)
public int size()
public Iterator<E> descendingIterator()
descendingIterator
in interface Deque<E>
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in class Object
public Spliterator<E> spliterator()
spliterator
in interface Iterable<E>
spliterator
in interface Collection<E>
public Stream<E> stream()
stream
in interface Collection<E>
public Stream<E> parallelStream()
parallelStream
in interface Collection<E>