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