org.mc4j.ems.store
Class CompleteValueHistory
java.lang.Object
org.mc4j.ems.store.CompleteValueHistory
- All Implemented Interfaces:
- ValueHistory
public class CompleteValueHistory
- extends java.lang.Object
- implements ValueHistory
- Version:
- $Revision: 1.2 $($Author: ghinkl $ / $Date: 2006/04/12 19:11:34 $)
- Author:
- Greg Hinkle (ghinkle@users.sourceforge.net), Apr 6, 2005
|
Field Summary |
protected int |
historySize
|
protected java.util.List<Value> |
values
Newer values are added at the end of the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected java.util.List<Value> values
- Newer values are added at the end of the list. Oldest values first.
historySize
protected int historySize
CompleteValueHistory
public CompleteValueHistory()
CompleteValueHistory
public CompleteValueHistory(int historySize)
getHistorySize
public int getHistorySize()
- Specified by:
getHistorySize in interface ValueHistory
setMaximumHistorySize
public void setMaximumHistorySize(int historySize)
getValues
public java.util.List<Value> getValues()
- Specified by:
getValues in interface ValueHistory
addValue
public void addValue(Value value)
- Specified by:
addValue in interface ValueHistory