public class CircularConcurrentLinkedDeque<E> extends ConcurrentLinkedDeque<E>
Constructor and Description |
---|
CircularConcurrentLinkedDeque(int maxSize,
Consumer<E> onEvictCallback) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
boolean |
offer(E element) |
boolean |
remove(Object o)
Deprecated.
use removeItem instead
|
boolean |
removeItem(E e) |
void |
setMaxSize(int maxSize) |
addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
containsAll, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public void setMaxSize(int maxSize)
public boolean add(E element)
public boolean addAll(Collection<? extends E> collection)
addAll
in interface Collection<E>
addAll
in class ConcurrentLinkedDeque<E>
public boolean offer(E element)
public void clear()
clear
in interface Collection<E>
clear
in class ConcurrentLinkedDeque<E>
@Deprecated public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface Deque<E>
remove
in class ConcurrentLinkedDeque<E>
public boolean removeItem(E e)
Copyright © 2022. All rights reserved.