|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
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.
| メソッドの概要 | |
void |
add(java.lang.Object o)
Add an object into the buffer. |
boolean |
isEmpty()
Tests to see if the CircularBuffer is empty. |
java.lang.Object |
remove()
Removes the next object from the buffer. |
int |
size()
Returns the number of elements stored in the buffer. |
| メソッドの詳細 |
public boolean isEmpty()
public int size()
public void add(java.lang.Object o)
BufferOverflowException - if adding this element exceeds the
buffer's capacity.public java.lang.Object remove()
BufferUnderflowException - if the buffer is already empty
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||