Class RunwayMapping

java.lang.Object
org.deltava.beans.navdata.RunwayMapping
All Implemented Interfaces:
Serializable, Comparable<RunwayMapping>, Cacheable

public class RunwayMapping extends Object implements Cacheable, Comparable<RunwayMapping>
A bean to store runway remappings.
Since:
8.3
Version:
8.3
Author:
Luke
See Also:
  • Constructor Details

    • RunwayMapping

      public RunwayMapping(String airportICAO)
      Creates the bean.
      Parameters:
      airportICAO - the airport ICAO code
  • Method Details

    • getOldCode

      public String getOldCode()
      Returns the old runway code.
      Returns:
      the code
    • getNewCode

      public String getNewCode()
      Returns the new runway code.
      Returns:
      the code
    • getICAO

      public String getICAO()
      Returns the airport ICAO code.
      Returns:
      the code
    • setOldCode

      public void setOldCode(String r)
      Updates the old runway code.
      Parameters:
      r - the code
    • setNewCode

      public void setNewCode(String r)
      Updates the new runway code.
      Parameters:
      r - the code
    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public int compareTo(RunwayMapping rm2)
      Specified by:
      compareTo in interface Comparable<RunwayMapping>