public class ResultHistory
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ResultHistory()
Initializes the history.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Result result,
java.lang.String suffix)
Adds the item to the history.
|
void |
clear()
Empties the history.
|
Result |
get(int index)
Returns the specified history item.
|
java.lang.String |
getSuffix(int index)
Returns the specified suffix.
|
java.util.Date |
getTimestamp(int index)
Returns the specified timestamp.
|
Result |
remove(int index)
Removes the specified entry.
|
int |
size()
Returns the number of history items stored.
|
java.lang.String |
toString()
Returns the history.
|
public void clear()
public int size()
public Result get(int index)
index - the index of the item to retrievepublic java.util.Date getTimestamp(int index)
index - the index of the item to retrievepublic java.lang.String getSuffix(int index)
index - the index of the item to retrievepublic void add(Result result, java.lang.String suffix)
result - the result to addsuffix - the suffix to addpublic Result remove(int index)
index - the history entry to removepublic java.lang.String toString()
toString in class java.lang.Object