Class DatedAccomplishment

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Auditable, ComboAlias, IDBean, RGBColor, ViewEntry, Cacheable

public class DatedAccomplishment extends Accomplishment
A bean to combine an Accomplishment with an Achievement date.
Since:
3.2
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • DatedAccomplishment

      public DatedAccomplishment(int pilotID, Instant dt, Accomplishment a)
      Creates the bean.
      Parameters:
      pilotID - the Pilot's database ID
      dt - the date/time the Accomplishment was achieved.
      a - the Accomplishment
  • Method Details

    • getPilotID

      public int getPilotID()
      Returns the Pilot's database ID.
      Returns:
      the ID or zero if none
    • getDate

      public Instant getDate()
      Returns the date the Accomplishment was achieved.
      Returns:
      the date/time of the Accomplishment
    • toString

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

      public int compareTo(Object o)
      Compares two DatedAccomplishments by comparing their accomplishment date/times. If they are equal, it sorts using Accomplishment's native comparator.
      Specified by:
      compareTo in interface Comparable<Object>
      Overrides:
      compareTo in class Accomplishment