Class IntrusiveSinglyLinkedQueue<VALUE_TYPE>

java.lang.Object
io.deephaven.util.datastructures.linked.IntrusiveSinglyLinkedQueue<VALUE_TYPE>

public class IntrusiveSinglyLinkedQueue<VALUE_TYPE> extends Object
Singly-linked queue. Supports basic queue operations, but not extended Collection methods that would be required by actually implementing java.lang.Queue.
  • 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

      public boolean offer(@NotNull VALUE_TYPE item)
    • poll

      public VALUE_TYPE poll()
    • peek

      public VALUE_TYPE peek()
    • isEmpty

      public boolean isEmpty()
    • size

      public long size()