Class IntrusiveSinglyLinkedQueue<VALUE_TYPE>
java.lang.Object
io.deephaven.util.datastructures.linked.IntrusiveSinglyLinkedQueue<VALUE_TYPE>
Singly-linked queue. Supports basic queue operations, but not extended Collection methods that would be required by
actually implementing java.lang.Queue.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Adapter interface for nodes with intrusively-stored next nodes. -
Constructor Summary
ConstructorDescriptionIntrusiveSinglyLinkedQueue
(@NotNull IntrusiveSinglyLinkedQueue.Adapter<VALUE_TYPE> adapter) Constructor, for sub-class use only. -
Method Summary
-
Constructor Details
-
IntrusiveSinglyLinkedQueue
public IntrusiveSinglyLinkedQueue(@NotNull @NotNull IntrusiveSinglyLinkedQueue.Adapter<VALUE_TYPE> adapter) Constructor, for sub-class use only.- Parameters:
adapter
- The adapter for updating a node's next node.
-
-
Method Details
-
offer
-
poll
-
peek
-
isEmpty
public boolean isEmpty() -
size
public long size()
-