metaglue
Class LogStorage

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--metaglue.LogStorage
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

public class LogStorage
extends ArrayList

Implements a queue of log messages with a given size, and only stores messages to that point.

See Also:
Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LogStorage()
           
LogStorage(int size)
           
 
Method Summary
 void addLog(LogMessage x)
           
 void addLog(String info, int level)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

LogStorage

public LogStorage()

LogStorage

public LogStorage(int size)
Method Detail

addLog

public void addLog(LogMessage x)

addLog

public void addLog(String info,
                   int level)