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