Enum Class UserAgentManager.Platform
java.lang.Object
java.lang.Enum<UserAgentManager.Platform>
page.codeberg.friedolyn.configuration.client.UserAgentManager.Platform
- All Implemented Interfaces:
Serializable,Comparable<UserAgentManager.Platform>,Constable
- Enclosing class:
UserAgentManager
The platforms used 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.Platform> Converts the givenlabelto the corresponding key in theUserAgentManager.Platformenum.static UserAgentManager.PlatformReturns the enum constant of this class with the specified name.static UserAgentManager.Platform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
LINUX
-
ZORIN
-
FEDORA
-
UBUNTU
-
ANDROID
-
WINDOWS
-
MAC
-
IPHONE
-
IPAD
-
XBOX
-
-
Field Details
-
label
The label of the platform.
-
-
Constructor Details
-
Platform
Creates a new platform with the given label.- Parameters:
label- The label of the platform.
-
-
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 givenlabelto the corresponding key in theUserAgentManager.Platformenum.- Parameters:
label- The label to convert to a key.- Returns:
- The corresponding enum key, or an empty
Optionalif the label does not match any enum value.
-