|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Buffer is an ordered list of objects, that does not support querying or direct access to the elements. It is basically a First In/First Out (FIFO) buffer. It is useful in both pooling and queue implementation code among other things.
Method Summary | |
void |
add(Object o)
Deprecated. Add an object into the buffer. |
boolean |
isEmpty()
Deprecated. Tests to see if the CircularBuffer is empty. |
Object |
remove()
Deprecated. Removes the next object from the buffer. |
int |
size()
Deprecated. Returns the number of elements stored in the buffer. |
Method Detail |
public boolean isEmpty()
public int size()
public void add(Object o)
BufferOverflowException
- if adding this element exceeds the
buffer's capacity.public Object remove()
BufferUnderflowException
- if the buffer is already empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |