| 
 [.hacks.] [.java.]  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--Fifo
(#)Fifo.java
maxentries, the oldest entry will be
 discarded on addition of any new entry. If unique is
 specified to be true entries already contained will not
 be added to this fifo.| Field Summary | |
protected  int | 
maxentries
Maximal number of entries. 0 for unlimited  | 
protected  boolean | 
unique
Force entries to be unique ?  | 
| Fields inherited from class java.util.Vector | 
capacityIncrement, elementCount, elementData | 
| Fields inherited from class java.util.AbstractList | 
modCount | 
| Constructor Summary | |
Fifo()
Constructs an unlimited Fifo with duplicate
 entries allowed. | 
|
Fifo(boolean unique)
Constructs an unlimited Fifo with duplicate
 entries allowed or not allowed depending on unique. | 
|
Fifo(int maxentries)
Constructs a Fifo limited to maxentries.
  | 
|
Fifo(int maxentries,
         boolean unique)
Constructs a Fifo. | 
|
| Method Summary | |
 void | 
in(java.lang.Object obj)
add an object to this fifo  | 
 java.lang.Object | 
out()
remove an object from this fifo  | 
| Methods inherited from class java.util.Vector | 
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize | 
| Methods inherited from class java.util.AbstractList | 
iterator, listIterator, listIterator | 
| Methods inherited from class java.lang.Object | 
finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.List | 
iterator, listIterator, listIterator | 
| Field Detail | 
protected int maxentries
protected boolean unique
| Constructor Detail | 
public Fifo()
Fifo with duplicate
 entries allowed.
public Fifo(int maxentries)
Fifo limited to maxentries.
 Duplicate entries allowed.
maxentries - maximal number if entries.public Fifo(boolean unique)
Fifo with duplicate
 entries allowed or not allowed depending on unique.
unique - force unique entries ?
public Fifo(int maxentries,
            boolean unique)
Fifo.
maxentries - maximal number if entries.unique - force unique entries ?| Method Detail | 
public void in(java.lang.Object obj)
obj - object to add.public java.lang.Object out()
  | 
 [.hacks.] [.java.]  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||