Enum Class RoutePairType

java.lang.Object
java.lang.Enum<RoutePairType>
org.deltava.beans.schedule.RoutePairType
All Implemented Interfaces:
Serializable, Comparable<RoutePairType>, Constable

public enum RoutePairType extends Enum<RoutePairType>
An enumeration to track Route pair types.
Since:
7.5
Version:
7.5
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static RoutePairType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RoutePairType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • hasCurrent

      public boolean hasCurrent()
      Returns whether this Route pair has current flights.
      Returns:
      TRUE if current flights are available, otherwise FALSE
    • hasHistoric

      public boolean hasHistoric()
      Returns whether this Route pair has historic flights.
      Returns:
      TRUE if historic flights are available, otherwise FALSE