public interface TLongQueue extends TLongCollection
Queue
serialVersionUID
Modifier and Type | Method and Description |
---|---|
long |
element()
Retrieves and removes the head of this queue.
|
boolean |
offer(long e)
Inserts the specified element into this queue if it is possible to do so
immediately without violating capacity restrictions.
|
long |
peek()
Retrieves, but does not remove, the head of this queue, or returns
TLongCollection.getNoEntryValue() if this queue is empty. |
long |
poll()
Retrieves and removes the head of this queue, or returns
TLongCollection.getNoEntryValue()
if this queue is empty. |
add, addAll, addAll, addAll, clear, contains, containsAll, containsAll, containsAll, equals, forEach, getNoEntryValue, hashCode, isEmpty, iterator, remove, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, size, toArray, toArray
long element()
poll()
only in that it throws an exception if this queue is empty.boolean offer(long e)
TLongCollection.add(long)
, which can fail to insert an element only by throwing an exception.e
- The element to add.long peek()
TLongCollection.getNoEntryValue()
if this queue is empty.TLongCollection.getNoEntryValue()
if this queue is emptylong poll()
TLongCollection.getNoEntryValue()
if this queue is empty.TLongCollection.getNoEntryValue()
if this queue is empty