Package org.jctools.queues
Class MpscLinkedArrayQueue<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<T>
-
- org.jctools.queues.MpscLinkedArrayQueue<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Queue<T>
public final class MpscLinkedArrayQueue<T> extends AbstractQueue<T>
-
-
Constructor Summary
Constructors Constructor Description MpscLinkedArrayQueue(int arrayCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
Iterator<T>
iterator()
boolean
offer(T value)
T
peek()
T
poll()
int
size()
T
weakPeek()
T
weakPoll()
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
offer
public boolean offer(T value)
-
poll
public T poll()
-
weakPoll
public T weakPoll()
-
peek
public T peek()
-
weakPeek
public T weakPeek()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in classAbstractCollection<T>
-
-