public class HistoricalEventImpl extends java.lang.Object implements HistoricalEventInterface
| Constructor and Description |
|---|
HistoricalEventImpl(java.util.Date date,
java.lang.String message)
Instantiates a new historical event impl.
|
HistoricalEventImpl(java.lang.String message)
Instantiates a new historical event impl.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Returns the date the historical event was produced.
|
java.lang.String |
getMessage()
Return the text message for this historical event.
|
java.lang.String |
toString()
Returns a text representation of the entire event including all the information available.
|
public HistoricalEventImpl(java.util.Date date,
java.lang.String message)
date - the datemessage - the messagepublic HistoricalEventImpl(java.lang.String message)
message - the messagepublic java.lang.String getMessage()
HistoricalEventInterfacegetMessage in interface HistoricalEventInterfacepublic java.util.Date getDate()
HistoricalEventInterfacegetDate in interface HistoricalEventInterfacepublic java.lang.String toString()
HistoricalEventInterfacetoString in interface HistoricalEventInterfacetoString in class java.lang.Object