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, toArraycontainsAll, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, streampublic 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 © 2025. All rights reserved.