Enum Class UserAgentManager.Client
java.lang.Object
java.lang.Enum<UserAgentManager.Client>
page.codeberg.friedolyn.configuration.client.UserAgentManager.Client
- All Implemented Interfaces:
Serializable
,Comparable<UserAgentManager.Client>
,Constable
- Enclosing class:
UserAgentManager
The clients present in the user-agent collection by default.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional
<UserAgentManager.Client> Converts the givenlabel
to the corresponding key in theUserAgentManager.Client
enum.static UserAgentManager.Client
Returns the enum constant of this class with the specified name.static UserAgentManager.Client[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
label
-
-
Constructor Details
-
Client
-
-
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
-
ofLabel
Converts the givenlabel
to the corresponding key in theUserAgentManager.Client
enum.- Parameters:
label
- The label to convert to a key.- Returns:
- The corresponding enum key, or an empty
Optional
if the label does not match any enum value.
-