public class StoreHistoryImpl extends java.util.Vector<HistoricalEventInterface> implements StoreHistoryInterface
| Constructor and Description |
|---|
StoreHistoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(java.util.Date date,
java.lang.String message)
Adds a new event at the indicated date with the specificed message.
|
void |
addEvent(HistoricalEventInterface event)
Adds a new event as an instance of an HistoricalEventInterface.
|
void |
addEvent(java.lang.String message)
Adds a new event at the time this method is called with the specified message.
|
java.util.Collection<HistoricalEventInterface> |
getHistory()
Obtains a collection of all HistoricalEvent(s) produced .
|
java.lang.String |
getHistoryAsString()
returns a text string with the fact history.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSizepublic java.util.Collection<HistoricalEventInterface> getHistory()
ObtainHistoryInterfacegetHistory in interface ObtainHistoryInterfacepublic java.lang.String getHistoryAsString()
ObtainHistoryInterfacegetHistoryAsString in interface ObtainHistoryInterfacepublic void addEvent(java.lang.String message)
StoreHistoryInterfaceaddEvent in interface StoreHistoryInterfacemessage - the messagepublic void addEvent(java.util.Date date,
java.lang.String message)
StoreHistoryInterfaceaddEvent in interface StoreHistoryInterfacedate - the datemessage - the messagepublic void addEvent(HistoricalEventInterface event)
StoreHistoryInterfaceaddEvent in interface StoreHistoryInterfaceevent - the event