|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.toolkit.Fifo
Basic first-in first-out list implementation.
This functionnality basically reduces to that of java.util.LinkedList
,
although this class allows for better semantics as it only defines two methods.
Note that this class is thread-safe.
Constructor Summary | |
Fifo()
|
Method Summary | |
java.lang.Object |
get()
Extracts the least recently put object from this Fifo
|
boolean |
isEmpty()
|
void |
put(java.lang.Object object)
Adds one more object to this Fifo
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Fifo()
Method Detail |
public java.lang.Object get()
put
object from this Fifo
public void put(java.lang.Object object)
Fifo
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |