Enum Class EquipmentCountCategory

java.lang.Object
java.lang.Enum<EquipmentCountCategory>
de.gustavblass.fsu.fmi.roombooking.model.room.equipment.EquipmentCountCategory
All Implemented Interfaces:
Serializable, Comparable<EquipmentCountCategory>, Constable

public enum EquipmentCountCategory extends Enum<EquipmentCountCategory>

The quantity of a specific piece of RoomEquipment relative to the respective Room's capacity.

  • Enum Constant Details

    • ALL_WORKSTATIONS

      public static final EquipmentCountCategory ALL_WORKSTATIONS
      All workstations are equipped, i.e. every occupant will have one piece of that equipment.
    • SOME_WORKSTATIONS

      public static final EquipmentCountCategory SOME_WORKSTATIONS
      More than one workstation is equipped, but not all. Not every occupant will have one piece of that equipment.
    • ONE

      public static final EquipmentCountCategory ONE
      Only one workstation is equipped, i.e. only one occupant will have that piece of that equipment.
    • INDEPENDENT_FROM_WORKSTATIONS

      public static final EquipmentCountCategory INDEPENDENT_FROM_WORKSTATIONS
      The equipment's quantity is unrelated to the number of workstations.
  • Field Details

    • name

      public final String name
  • Constructor Details

    • EquipmentCountCategory

      private EquipmentCountCategory(String name)
  • Method Details

    • values

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