Enum Class PassengerLoad

java.lang.Object
java.lang.Enum<PassengerLoad>
com.cta4j.bus.prediction.model.PassengerLoad
All Implemented Interfaces:
Serializable, Comparable<PassengerLoad>, Constable

public enum PassengerLoad extends Enum<PassengerLoad>
Represents the passenger load information for a prediction.
  • Enum Constant Details

    • FULL

      public static final PassengerLoad FULL
      Indicates that the bus is full.
    • HALF_EMPTY

      public static final PassengerLoad HALF_EMPTY
      Indicates that the bus is half full.
    • EMPTY

      public static final PassengerLoad EMPTY
      Indicates that the bus is empty.
    • UNKNOWN

      public static final PassengerLoad UNKNOWN
      Indicates that no passenger load information is available.
  • Method Details

    • values

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