Class IntrusiveSinglyLinkedQueue<VALUE_TYPE>
java.lang.Object
com.illumon.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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIntrusiveSinglyLinkedQueue.Adapter<NODE_TYPE>Adapter interface for nodes with intrusively-stored next nodes. -
Constructor Summary
Constructors Constructor Description IntrusiveSinglyLinkedQueue(IntrusiveSinglyLinkedQueue.Adapter<VALUE_TYPE> adapter)Constructor, for sub-class use only. -
Method Summary
Modifier and Type Method Description booleanisEmpty()booleanoffer(VALUE_TYPE item)VALUE_TYPEpeek()VALUE_TYPEpoll()longsize()