public enum TwoFactor extends java.lang.Enum<TwoFactor> implements EnumConverter<TwoFactor>
Modifier and Type | Method and Description |
---|---|
static TwoFactor |
from(java.lang.String value) |
java.lang.Object |
to(TwoFactor v) |
static TwoFactor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TwoFactor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TwoFactor ENABLED
public static final TwoFactor DISABLED
public static TwoFactor[] values()
for (TwoFactor c : TwoFactor.values()) System.out.println(c);
public static TwoFactor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TwoFactor from(java.lang.String value)
public java.lang.Object to(TwoFactor v)
to
in interface EnumConverter<TwoFactor>