public abstract class ForwardingDeque<E> extends Object implements Deque<E>
Deque allowing to override particular methods and not changing the underlying Deque behavior. This
class is applying the decorator pattern to the underlying Deque.| Constructor and Description |
|---|
ForwardingDeque(Deque<E> delegate) |
public boolean offerFirst(E e)
offerFirst in interface Deque<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 add(E e)
public boolean offer(E e)
public E remove()
public E poll()
public E element()
public E peek()
public boolean remove(Object o)
public boolean contains(Object o)
public int size()
public Iterator<E> descendingIterator()
descendingIterator in interface Deque<E>public boolean isEmpty()
isEmpty in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean removeIf(java.util.function.Predicate<? super E> filter)
removeIf in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>public java.util.stream.Stream<E> stream()
stream in interface Collection<E>public java.util.stream.Stream<E> parallelStream()
parallelStream in interface Collection<E>public void forEach(java.util.function.Consumer<? super E> action)
Copyright © 2017. All rights reserved.