luky.util
Class FixedSizeStringStorage
java.lang.Object
luky.util.FixedSizeStringStorage
- Direct Known Subclasses:
- PersistentFixedSizeStringStorage
public class FixedSizeStringStorage
- extends Object
A linked list of fixed size. Adding an element beyond the size will cause
the deletion of the oldest element
- Version:
- 1.00
- Author:
- Chris Lukassen
-

Method Summary |
void |
add(String line)
adds an element to the list |
Vector |
get()
gets the list as an vector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxSize
protected int maxSize
list
protected Vector list
FixedSizeStringStorage
public FixedSizeStringStorage(int size)
- Constructor size must be 1 or greater
add
public void add(String line)
- adds an element to the list
get
public Vector get()
- gets the list as an vector