org.apache.avalon.excalibur.collections
クラス FixedSizeBuffer
java.lang.Object
|
+--org.apache.avalon.excalibur.collections.FixedSizeBuffer
- すべての実装インタフェース:
- Buffer
- public final class FixedSizeBuffer
- extends java.lang.Object
- implements Buffer
The FixedSizeBuffer is a very efficient implementation of
Buffer that does not alter the size of the buffer at runtime.
- 作成者:
- Berin Loritsch
メソッドの概要 |
void |
add(java.lang.Object element)
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. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedSizeBuffer
public FixedSizeBuffer(int size)
FixedSizeBuffer
public FixedSizeBuffer()
size
public final int size()
- インタフェース
Buffer
の記述:
- Returns the number of elements stored in the buffer.
- 定義:
- インタフェース
Buffer
内の size
isEmpty
public final boolean isEmpty()
- インタフェース
Buffer
の記述:
- Tests to see if the CircularBuffer is empty.
- 定義:
- インタフェース
Buffer
内の isEmpty
add
public final void add(java.lang.Object element)
- インタフェース
Buffer
の記述:
- Add an object into the buffer.
- 定義:
- インタフェース
Buffer
内の add
- インタフェース
org.apache.avalon.excalibur.collections.Buffer
からコピーされたタグ:
- 例外:
BufferOverflowException
- if adding this element exceeds the
buffer's capacity.
remove
public final java.lang.Object remove()
- インタフェース
Buffer
の記述:
- Removes the next object from the buffer.
- 定義:
- インタフェース
Buffer
内の remove
- インタフェース
org.apache.avalon.excalibur.collections.Buffer
からコピーされたタグ:
- 例外:
BufferUnderflowException
- if the buffer is already empty
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."