com.stackify.api.common.lang
public class EvictingQueue<E> extends com.google.common.collect.ForwardingQueue<E>
| Constructor and Description |
|---|
EvictingQueue(int maxSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
boolean |
addAll(Collection<? extends E> collection) |
protected Queue<E> |
delegate() |
boolean |
offer(E element) |
element, peek, poll, remove, standardOffer, standardPeek, standardPollclear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArraypublic EvictingQueue(int maxSize)
maxSize - Maximum size of the queueprotected Queue<E> delegate()
delegate in class com.google.common.collect.ForwardingQueue<E>ForwardingQueue.delegate()public boolean offer(E element)
public boolean add(E element)
public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>addAll in class com.google.common.collect.ForwardingCollection<E>ForwardingCollection.addAll(java.util.Collection)Copyright © 2015 Stackify, LLC. All Rights Reserved.