Enum Class Route

java.lang.Object
java.lang.Enum<Route>
com.cta4j.train.model.Route
All Implemented Interfaces:
Serializable, Comparable<Route>, Constable

public enum Route extends Enum<Route>
A train route.
  • Enum Constant Details

    • RED

      public static final Route RED
      The Red Line route.
    • BLUE

      public static final Route BLUE
      The Blue Line route.
    • BROWN

      public static final Route BROWN
      The Brown Line route.
    • GREEN

      public static final Route GREEN
      The Green Line route.
    • ORANGE

      public static final Route ORANGE
      The Orange Line route.
    • PURPLE

      public static final Route PURPLE
      The Purple Line route.
    • PINK

      public static final Route PINK
      The Pink Line route.
    • YELLOW

      public static final Route YELLOW
      The Yellow Line route.
    • N_A

      public static final Route N_A
      Not available / not applicable.
  • Method Details

    • values

      public static Route[] 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 Route 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