Package ws.schild.jave.encode.enums
Enum PresetEnum
- java.lang.Object
-
- java.lang.Enum<PresetEnum>
-
- ws.schild.jave.encode.enums.PresetEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PresetEnum>
public enum PresetEnum extends java.lang.Enum<PresetEnum>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpresetName
-
Constructor Summary
Constructors Modifier Constructor Description privatePresetEnum(java.lang.String presetName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPresetName()static PresetEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PresetEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ULTRAFAST
public static final PresetEnum ULTRAFAST
Code quality from low to high
-
SUPERFAST
public static final PresetEnum SUPERFAST
-
VERYFAST
public static final PresetEnum VERYFAST
-
FASTER
public static final PresetEnum FASTER
-
FAST
public static final PresetEnum FAST
-
MEDIUM
public static final PresetEnum MEDIUM
-
SLOW
public static final PresetEnum SLOW
-
SLOWER
public static final PresetEnum SLOWER
-
VERYSLOW
public static final PresetEnum VERYSLOW
-
PLACEBO
public static final PresetEnum PLACEBO
-
-
Method Detail
-
values
public static PresetEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PresetEnum c : PresetEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PresetEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPresetName
public java.lang.String getPresetName()
-
-