|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.util.CappedQueue<T>
public class CappedQueue<T>
This queue has a size limit
Field Summary | |
---|---|
private int |
sizeLimit
|
private java.util.Vector<T> |
vec
|
Constructor Summary | |
---|---|
CappedQueue()
constructor |
|
CappedQueue(int s)
constructor |
Method Summary | |
---|---|
boolean |
empty()
DOCUMENT ME! |
T |
get()
DOCUMENT ME! |
void |
put(T o)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector<T> vec
private int sizeLimit
Constructor Detail |
---|
public CappedQueue()
public CappedQueue(int s)
s
- the size limitMethod Detail |
---|
public void put(T o) throws CutoffExceededException
o
- DOCUMENT ME!
CutoffExceededException
- DOCUMENT ME!public T get()
public boolean empty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |