Package io.anyline2.view
Enum FlashConfig.FlashMode
- java.lang.Object
-
- java.lang.Enum<FlashConfig.FlashMode>
-
- io.anyline2.view.FlashConfig.FlashMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FlashConfig.FlashMode>
- Enclosing class:
- FlashConfig
public static enum FlashConfig.FlashMode extends java.lang.Enum<FlashConfig.FlashMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
MANUAL
Deprecated.MANUAL_OFF
MANUAL_ON
NONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlashConfig.FlashMode
fromInt(int mode)
static FlashConfig.FlashMode
fromString(java.lang.String mode)
static FlashConfig.FlashMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FlashConfig.FlashMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final FlashConfig.FlashMode AUTO
-
MANUAL
@Deprecated public static final FlashConfig.FlashMode MANUAL
Deprecated.
-
NONE
public static final FlashConfig.FlashMode NONE
-
MANUAL_ON
public static final FlashConfig.FlashMode MANUAL_ON
-
MANUAL_OFF
public static final FlashConfig.FlashMode MANUAL_OFF
-
-
Method Detail
-
values
public static FlashConfig.FlashMode[] 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 (FlashConfig.FlashMode c : FlashConfig.FlashMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlashConfig.FlashMode 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
-
fromString
public static FlashConfig.FlashMode fromString(java.lang.String mode)
-
fromInt
public static FlashConfig.FlashMode fromInt(int mode)
-
-