Class TakeoffLanding

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.TakeoffLanding
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class TakeoffLanding extends DatabaseBean
A bean to store ACARS takeoff/landing data.
Since:
2.8
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • TakeoffLanding

      public TakeoffLanding(int id, boolean isTakeoff)
      Initializes the bean.
      Parameters:
      id - the ACARS Flight ID
      isTakeoff - TRUE if a takeoff, otherwise FALSE
  • Method Details

    • getIsTakeoff

      public boolean getIsTakeoff()
      Returns whether this is a takeoff or a landing.
      Returns:
      TRUE if a takeoff, otherwise FALSE
    • getDate

      public Instant getDate()
      Returns the date of the takeoff/landing.
      Returns:
      the takeoff/landing date/time
    • setDate

      public void setDate(Instant dt)
      Updates the takeoff/landing date.
      Parameters:
      dt - the takeoff/landing date/time
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DatabaseBean
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class DatabaseBean