|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TByteQueue
Interface for Trove queue implementations.
Queue
Field Summary |
---|
Fields inherited from interface gnu.trove.TByteCollection |
---|
serialVersionUID |
Method Summary | |
---|---|
byte |
element()
Retrieves and removes the head of this queue. |
boolean |
offer(byte e)
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions. |
byte |
peek()
Retrieves, but does not remove, the head of this queue, or returns TByteCollection.getNoEntryValue() if this queue is empty. |
byte |
poll()
Retrieves and removes the head of this queue, or returns TByteCollection.getNoEntryValue()
if this queue is empty. |
Methods inherited from interface gnu.trove.TByteCollection |
---|
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 |
---|
byte element()
poll()
only in that it throws an exception if this queue is empty.
boolean offer(byte e)
TByteCollection.add(byte)
, which can fail to insert an element only by throwing an exception.
e
- The element to add.
byte peek()
TByteCollection.getNoEntryValue()
if this queue is empty.
TByteCollection.getNoEntryValue()
if this queue is emptybyte poll()
TByteCollection.getNoEntryValue()
if this queue is empty.
TByteCollection.getNoEntryValue()
if this queue is empty
|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |