Class TakeoffLanding
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.acars.TakeoffLanding
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store ACARS takeoff/landing data.
- Since:
- 2.8
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, getHexID, getID, setID, validateID, validateID
-
Constructor Details
-
TakeoffLanding
public TakeoffLanding(int id, boolean isTakeoff) Initializes the bean.- Parameters:
id
- the ACARS Flight IDisTakeoff
- 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
Returns the date of the takeoff/landing.- Returns:
- the takeoff/landing date/time
-
setDate
Updates the takeoff/landing date.- Parameters:
dt
- the takeoff/landing date/time
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDatabaseBean
-
equals
- Overrides:
equals
in classDatabaseBean
-