org.apache.avalon.excalibur.collections
Class CircularBuffer

java.lang.Object
  |
  +--org.apache.avalon.excalibur.collections.CircularBuffer

public class CircularBuffer
extends java.lang.Object

Author:
Federico Barbieri

Field Summary
protected  java.lang.Object[] m_buffer
           
protected  int m_bufferSize
           
protected  int m_contentSize
           
protected  int m_head
           
protected  int m_tail
           
 
Constructor Summary
CircularBuffer()
           
CircularBuffer(int size)
           
 
Method Summary
 void append(java.lang.Object o)
           
 java.lang.Object get()
           
 int getBufferSize()
           
 int getContentSize()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_buffer

protected java.lang.Object[] m_buffer

m_bufferSize

protected int m_bufferSize

m_contentSize

protected int m_contentSize

m_head

protected int m_head

m_tail

protected int m_tail
Constructor Detail

CircularBuffer

public CircularBuffer(int size)

CircularBuffer

public CircularBuffer()
Method Detail

isEmpty

public boolean isEmpty()

getContentSize

public int getContentSize()

getBufferSize

public int getBufferSize()

append

public void append(java.lang.Object o)

get

public java.lang.Object get()


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.