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