public interface TShortQueue extends TShortCollection
QueueserialVersionUID| Modifier and Type | Method and Description |
|---|---|
short |
element()
Retrieves and removes the head of this queue.
|
boolean |
offer(short e)
Inserts the specified element into this queue if it is possible to do so
immediately without violating capacity restrictions.
|
short |
peek()
Retrieves, but does not remove, the head of this queue, or returns
TShortCollection.getNoEntryValue() if this queue is empty. |
short |
poll()
Retrieves and removes the head of this queue, or returns
TShortCollection.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, toArrayshort element()
poll() only in that it throws an exception if this queue is empty.boolean offer(short e)
TShortCollection.add(short), which can fail to insert an element only by throwing an exception.e - The element to add.short peek()
TShortCollection.getNoEntryValue() if this queue is empty.TShortCollection.getNoEntryValue() if this queue is emptyshort poll()
TShortCollection.getNoEntryValue()
if this queue is empty.TShortCollection.getNoEntryValue() if this queue is empty