org.apache.avalon.excalibur.collections
Class FixedSizeBuffer

java.lang.Object
  |
  +--org.apache.avalon.excalibur.collections.FixedSizeBuffer
All Implemented Interfaces:
Buffer

Deprecated. use org.apache.commons.collections.BoundedFifoBuffer instead

public final class FixedSizeBuffer
extends Object
implements Buffer

The FixedSizeBuffer is a very efficient implementation of Buffer that does not alter the size of the buffer at runtime.

Author:
Berin Loritsch

Constructor Summary
FixedSizeBuffer()
          Deprecated.  
FixedSizeBuffer(int size)
          Deprecated.  
 
Method Summary
 void add(Object element)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizeBuffer

public FixedSizeBuffer(int size)
Deprecated. 

FixedSizeBuffer

public FixedSizeBuffer()
Deprecated. 
Method Detail

size

public final int size()
Deprecated. 
Description copied from interface: Buffer
Returns the number of elements stored in the buffer.

Specified by:
size in interface Buffer

isEmpty

public final boolean isEmpty()
Deprecated. 
Description copied from interface: Buffer
Tests to see if the CircularBuffer is empty.

Specified by:
isEmpty in interface Buffer

add

public final void add(Object element)
Deprecated. 
Description copied from interface: Buffer
Add an object into the buffer.

Specified by:
add in interface Buffer

remove

public final Object remove()
Deprecated. 
Description copied from interface: Buffer
Removes the next object from the buffer.

Specified by:
remove in interface Buffer


Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.