|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.deltax.util.FIFOQueue
A simple FIFO queue.
Constructor Summary | |
FIFOQueue()
Create an empty queue |
Method Summary | |
void |
clear()
Clear the queue |
java.lang.Object |
get()
Return the queue head |
boolean |
getBoolean()
Return the queue head, as a boolean |
byte |
getByte()
Return the queue head, as a byte |
char |
getChar()
Return the queue head, as a char |
double |
getDouble()
Return the queue head, as a double |
float |
getFloat()
Return the queue head, as a float |
int |
getInteger()
Return the queue head, as a int |
long |
getLong()
Return the queue head, as a long |
java.lang.String |
getString()
Return the queue head, as a String |
boolean |
isEmpty()
Return true if the queue is empty. |
java.lang.Object |
peek()
|
java.lang.Object |
peek(int i)
|
void |
put(boolean x)
Insert a boolean in the queue |
void |
put(byte x)
Insert a byte in the queue |
void |
put(char x)
Insert a char in the queue |
void |
put(double x)
Insert a double in the queue |
void |
put(float x)
Insert a float in the queue |
void |
put(int x)
Insert an integer in the queue |
void |
put(long x)
Insert a long in the queue |
void |
put(java.lang.Object obj)
Insert an Object in the queue |
int |
size()
Return the size of the queue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FIFOQueue()
Method Detail |
public void clear()
public java.lang.Object get() throws QueueEmptyException
QueueEmptyException
- if the queue is emptypublic java.lang.Object peek(int i)
public java.lang.Object peek()
public byte getByte() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Byte objectpublic char getChar() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Character objectpublic double getDouble() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Double objectpublic float getFloat() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Float objectpublic int getInteger() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not an Integer objectpublic long getLong() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Long objectpublic java.lang.String getString() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a String objectpublic boolean getBoolean() throws QueueEmptyException
QueueEmptyException
- if the queue is empty
java.lang.ClassCastException
- if the queue head is not a Boolean objectpublic boolean isEmpty()
public int size()
public void put(byte x)
x
- the element to be insertedpublic void put(char x)
x
- the element to be insertedpublic void put(double x)
x
- the element to be insertedpublic void put(float x)
x
- the element to be insertedpublic void put(int x)
x
- the element to be insertedpublic void put(long x)
x
- the element to be insertedpublic void put(boolean x)
x
- the element to be insertedpublic void put(java.lang.Object obj)
obj
- the object to be inserted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |