Package a.b
Enum SomeEnum
- java.lang.Object
-
- java.lang.Enum<SomeEnum>
-
- a.b.SomeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<SomeEnum>
,java.lang.constant.Constable
public enum SomeEnum extends Enum<SomeEnum>
Example predefined Enum
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static SomeEnum
getByValue(String arg)
String
getValue()
static SomeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static SomeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static SomeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SomeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
-
-