Class RunwayGateTotal

java.lang.Object
org.deltava.beans.stats.RunwayGateTotal
All Implemented Interfaces:
Serializable, Comparable<RunwayGateTotal>

class RunwayGateTotal extends Object implements Serializable, Comparable<RunwayGateTotal>
A bean to store Runway/Gate usage by Airline.
Since:
10.3
Version:
11.1
Author:
Luke
  • Constructor Details

    • RunwayGateTotal

      RunwayGateTotal(String name, Airline a, int total)
      Creates the bean.
      Parameters:
      name - the Runway/Gate name
      a - the Airline
      total - the total number of uses
  • Method Details

    • getName

      public String getName()
      Returns the Runway/Gate name.
      Returns:
      the name
    • getAirline

      public Airline getAirline()
      Returns the Airline.
      Returns:
      the Airline
    • getTotal

      public int getTotal()
      Returns the total number of times this Gate was used for a flight.
      Returns:
      the number of flights
    • toString

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

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

      public int compareTo(RunwayGateTotal gt)
      Specified by:
      compareTo in interface Comparable<RunwayGateTotal>