public class FixedDeque<E> extends ConcurrentLinkedDeque<E> implements Serializable
Constructor and Description |
---|
FixedDeque(int maxSize) |
Modifier and Type | Method and Description |
---|---|
static <E> FixedDeque<E> |
create(int maxSize) |
boolean |
isFull()
队列是否已满
|
boolean |
offerFirst(E s) |
boolean |
offerLast(E s) |
add, addAll, addFirst, addLast, clear, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, 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 static <E> FixedDeque<E> create(int maxSize)
public boolean offerFirst(E s)
offerFirst
in interface Deque<E>
offerFirst
in class ConcurrentLinkedDeque<E>
public boolean offerLast(E s)
public boolean isFull()
Copyright © 2024. All rights reserved.