Package net.hironico.minisql.ui.history
Class QueryHistoryEntry
java.lang.Object
net.hironico.minisql.ui.history.QueryHistoryEntry
- All Implemented Interfaces:
Comparable<QueryHistoryEntry>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timestamp
-
query
-
-
Constructor Details
-
QueryHistoryEntry
public QueryHistoryEntry()
-
-
Method Details
-
equals
-
toString
-
compareTo
Compare the timestmap of the entry- Specified by:
compareToin interfaceComparable<QueryHistoryEntry>- Parameters:
o- other entry to compare to- Returns:
- inverse result of the natural compare to ensure most recent entries to be displayed on top
-