Class QueryHistoryEntry

java.lang.Object
net.hironico.minisql.ui.history.QueryHistoryEntry
All Implemented Interfaces:
Comparable<QueryHistoryEntry>

public class QueryHistoryEntry extends Object implements Comparable<QueryHistoryEntry>
  • Field Details

    • timestamp

      public Long timestamp
    • query

      public String query
  • Constructor Details

    • QueryHistoryEntry

      public QueryHistoryEntry()
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(QueryHistoryEntry o)
      Compare the timestmap of the entry
      Specified by:
      compareTo in interface Comparable<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