Enum Class AccessDirection

java.lang.Object
java.lang.Enum<AccessDirection>
net.commuty.parking.model.AccessDirection
All Implemented Interfaces:
Serializable, Comparable<AccessDirection>, Constable

public enum AccessDirection extends Enum<AccessDirection>
When reporting accesses on a parking site, this represents whether a user is coming in (IN) or existing (OUT) the parking site.
  • Enum Constant Details

    • IN

      public static final AccessDirection IN
      Indicates a user that is coming on the parking site.
    • OUT

      public static final AccessDirection OUT
      Indicates a user that is exiting the parking site.
  • Method Details

    • values

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