GNU Trove

gnu.trove.queue
Interface TFloatQueue

All Superinterfaces:
TFloatCollection

public interface TFloatQueue
extends TFloatCollection

Interface for Trove queue implementations.

See Also:
Queue

Field Summary
 
Fields inherited from interface gnu.trove.TFloatCollection
serialVersionUID
 
Method Summary
 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.
 
Methods inherited from interface gnu.trove.TFloatCollection
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
 

Method Detail

element

float element()
Retrieves and removes the head of this queue. This method differs from poll() only in that it throws an exception if this queue is empty.


offer

boolean offer(float e)
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. When using a capacity-restricted queue, this method is generally preferable to TFloatCollection.add(float), which can fail to insert an element only by throwing an exception.

Parameters:
e - The element to add.
Returns:
true if the element was added to this queue, else false

peek

float peek()
Retrieves, but does not remove, the head of this queue, or returns TFloatCollection.getNoEntryValue() if this queue is empty.

Returns:
the head of this queue, or TFloatCollection.getNoEntryValue() if this queue is empty

poll

float poll()
Retrieves and removes the head of this queue, or returns TFloatCollection.getNoEntryValue() if this queue is empty.

Returns:
the head of this queue, or TFloatCollection.getNoEntryValue() if this queue is empty

GNU Trove