sam.toolkit
Class Fifo

java.lang.Object
  |
  +--sam.toolkit.Fifo

public class Fifo
extends java.lang.Object

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

Fifo

public Fifo()
Method Detail

get

public java.lang.Object get()
Extracts the least recently put object from this Fifo

put

public void put(java.lang.Object object)
Adds one more object to this Fifo

isEmpty

public boolean isEmpty()