Package com.iizix.license.history
Class LicensingHistoryEntry
java.lang.Object
com.iizix.license.history.LicensingHistoryEntry
- All Implemented Interfaces:
Serializable
A single entry in the license history.
- Author:
- Christopher Mindus
- See Also:
Field Summary
Modifier and TypeFieldDescriptionprotected long
The date and time.protected LicensingHistoryEvent
The event type.protected String
The text.Constructor Summary
ConstructorDescriptionLicensingHistoryEntry
(long dateTime, LicensingHistoryEvent event, String text) Constructs a new entry.LicensingHistoryEntry
(LicensingHistoryEvent event, String text) Constructs a new entry created now.Method Summary
Field Details
dateTime
protected long dateTimeThe date and time.event
The event type.text
The text.
Constructor Details
LicensingHistoryEntry
Constructs a new entry created now.- Parameters:
event
- The event.text
- The text, maximum 1000 characters.- Throws:
NullPointerException
- Ifevent
ortext
is null.IllegalArgumentException
- If text is longer than 1000 characters.
LicensingHistoryEntry
Constructs a new entry.- Parameters:
dateTime
- The created time in milliseconds since the epoch.event
- The event.text
- The text, maximum 1000 characters.- Throws:
NullPointerException
- Ifevent
ortext
is null.IllegalArgumentException
- If text is longer than 1000 characters.
Method Details
getDateTime
public long getDateTime()Gets the date and time.- Returns:
- Time in milliseconds since the epoch.
getEvent
Gets the history event.- Returns:
- The event instance.
getText
Gets the text for the event.- Returns:
- The text string.
equals
Checks for two equal events.hashCode
public int hashCode()Hash code.toString
Prints a nice toString() output for debug.