public class EvictingQueue<E> extends ForwardingQueue<E> implements Queue<E>
| Constructor and Description |
|---|
EvictingQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
protected boolean |
addEvictingIfNeeded(E e) |
static <E> EvictingQueue<E> |
create(int maxCapacity) |
protected Queue<E> |
delegate() |
boolean |
offer(E e) |
element, peek, poll, removeclear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic static <E> EvictingQueue<E> create(int maxCapacity)
public boolean add(E e)
add in interface Collection<E>add in interface Queue<E>add in class ForwardingQueue<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in class ForwardingCollection<E>public boolean offer(E e)
protected boolean addEvictingIfNeeded(E e)
Copyright © 2017. All Rights Reserved.