public enum PasswordOptions extends java.lang.Enum<PasswordOptions> implements EnumCreator<PasswordOptions>
Enum Constant and Description |
---|
CLONE_PASSWORD
Defines the clone password option
|
NEW_PASSWORD
Defines the new password option
|
Modifier and Type | Field and Description |
---|---|
private static AccountsConstants |
CONSTANTS
The instance of accounts constants provider
|
private static java.util.Map<java.lang.String,java.lang.String> |
MAP
The password options and their presentation values
|
Modifier and Type | Method and Description |
---|---|
PasswordOptions |
createFrom(java.lang.String name)
Create this enumeration by its name.
|
PasswordOptions[] |
getValues()
Lists all its values.
|
java.lang.String |
toString()
Returns its presentation value.
|
static PasswordOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PasswordOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordOptions CLONE_PASSWORD
public static final PasswordOptions NEW_PASSWORD
private static final AccountsConstants CONSTANTS
private static final java.util.Map<java.lang.String,java.lang.String> MAP
public static PasswordOptions[] values()
for (PasswordOptions c : PasswordOptions.values()) System.out.println(c);
public static PasswordOptions 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 PasswordOptions[] getValues()
getValues
in interface EnumCreator<PasswordOptions>
public PasswordOptions createFrom(java.lang.String name)
createFrom
in interface EnumCreator<PasswordOptions>
name
- The password option namepublic java.lang.String toString()
toString
in class java.lang.Enum<PasswordOptions>