Luky Library - 4.1.1 (20061117-1148)

luky.util
Class FixedSizeStringStorage

java.lang.Object
  extended by 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
 

Field Summary
protected  Vector list
           
protected  int maxSize
           
 
Constructor Summary
FixedSizeStringStorage(int size)
          Constructor size must be 1 or greater
 
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
 

Field Detail

maxSize

protected int maxSize

list

protected Vector list
Constructor Detail

FixedSizeStringStorage

public FixedSizeStringStorage(int size)
Constructor size must be 1 or greater

Method Detail

add

public void add(String line)
adds an element to the list


get

public Vector get()
gets the list as an vector


Luky Library - 4.1.1 (20061117-1148)