Enum Class IntendedUse
- All Implemented Interfaces:
Serializable, Comparable<IntendedUse>, Constable
Represents the purpose of a room booking:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the user who booked the room wishes to hold an official conference related to their work at FMI.Indicates that the user who booked the room wishes to hold some general conference of unspecified type.Indicates that the user who booked the room wishes to work rather silently and not to hold any kind of conference. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional<IntendedUse> Converts the given label to the matching enum value.static IntendedUseReturns the enum constant of this class with the specified name.static IntendedUse[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFFICIAL_MEETING
Indicates that the user who booked the room wishes to hold an official conference related to their work at FMI. -
REGULAR_MEETING
Indicates that the user who booked the room wishes to hold some general conference of unspecified type. May be official or unofficial, related or unrelated to work or studies. -
STUDYING
Indicates that the user who booked the room wishes to work rather silently and not to hold any kind of conference.
-
-
Field Details
-
name
-
-
Constructor Details
-
IntendedUse
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
ofName
Converts the given label to the matching enum value.- Parameters:
name- AStringsuspected to be an enum value.- Returns:
- The corresponding enum value if the given label matches one.
-