public final class BoundedBuffer<T> extends java.lang.Object implements Buffer<T>
BoundedBuffer(int capacity)
int
capacity()
void
clear()
T
dequeue()
dropHead()
dropTail()
enqueue(T elem)
boolean
isEmpty()
isFull()
nonEmpty()
peek()
used()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BoundedBuffer(int capacity)
public int capacity()
capacity
Buffer<T>
public int used()
used
public boolean isFull()
isFull
public boolean isEmpty()
isEmpty
public boolean nonEmpty()
nonEmpty
public void enqueue(T elem)
enqueue
public T dequeue()
dequeue
public T peek()
peek
public void clear()
clear
public void dropHead()
dropHead
public void dropTail()
dropTail