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 SummaryFieldsModifier and TypeFieldDescription- protected longThe date and time.- protected LicensingHistoryEventThe event type.- protected StringThe text.
- Constructor SummaryConstructorsConstructorDescription- LicensingHistoryEntry- (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- dateTimeprotected long dateTimeThe date and time.
- eventThe event type.
- textThe text.
 
- Constructor Details- LicensingHistoryEntryConstructs a new entry created now.- Parameters:
- event- The event.
- text- The text, maximum 1000 characters.
- Throws:
- NullPointerException- If- eventor- textis null.
- IllegalArgumentException- If text is longer than 1000 characters.
 
- LicensingHistoryEntryConstructs a new entry.- Parameters:
- dateTime- The created time in milliseconds since the epoch.
- event- The event.
- text- The text, maximum 1000 characters.
- Throws:
- NullPointerException- If- eventor- textis null.
- IllegalArgumentException- If text is longer than 1000 characters.
 
 
- Method Details- getDateTimepublic long getDateTime()Gets the date and time.- Returns:
- Time in milliseconds since the epoch.
 
- getEventGets the history event.- Returns:
- The event instance.
 
- getTextGets the text for the event.- Returns:
- The text string.
 
- equalsChecks for two equal events.
- hashCodepublic int hashCode()Hash code.
- toStringPrints a nice toString() output for debug.