public final class MpscLinkedArrayQueue<T> extends AbstractQueue<T>
Constructor and Description |
---|
MpscLinkedArrayQueue(int arrayCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
offer(T value) |
T |
peek() |
T |
poll() |
int |
size() |
T |
weakPeek() |
T |
weakPoll() |
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
public boolean offer(T value)
public T poll()
public T weakPoll()
public T peek()
public T weakPeek()
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in class AbstractCollection<T>
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>
Copyright © 2013–2024. All rights reserved.