public class LastCalculationsHistory
extends java.lang.Object
implements java.io.Serializable
N
entries of the calculation history.Constructor and Description |
---|
LastCalculationsHistory(int n)
Contains the last
N output entries of the calculation history. |
Modifier and Type | Method and Description |
---|---|
void |
add(IExpr entry)
Add a new calculation to the history.
|
IExpr |
get(int index)
Get the history entry at the given
index . |
int |
size() |
public LastCalculationsHistory(int n)
N
output entries of the calculation history.n
- maximum capacity of the last calculated entries which the history could contain.public void add(IExpr entry)
N
calculations are stored in the history. It may be that the
last N+1
entry will be overriden by the new entry.entry
- public IExpr get(int index)
index
. If the index
is positive it ranges from 1
to
fAllEntriesCounter
. If the index
is negative it ranges from -1
to
-fAllEntriesCounter
.index
- null
if the output history isn't available for the given index
.public int size()