Module de.powerstat.validation
Enum Class UsernameConfigurableStrategy.HandleEMail
java.lang.Object
java.lang.Enum<UsernameConfigurableStrategy.HandleEMail>
de.powerstat.validation.values.strategies.UsernameConfigurableStrategy.HandleEMail
- All Implemented Interfaces:
Serializable
,Comparable<UsernameConfigurableStrategy.HandleEMail>
,Constable
- Enclosing class:
- UsernameConfigurableStrategy
public static enum UsernameConfigurableStrategy.HandleEMail
extends Enum<UsernameConfigurableStrategy.HandleEMail>
Enum for handling of email addresses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo email address is denied as username.Username can be an email address, but it's not required.Username must be an email address. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get action number.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMAIL_DENIED
No email address is denied as username. -
EMAIL_REQUIRED
Username must be an email address. -
EMAIL_POSSIBLE
Username can be an email address, but it's not required.
-
-
Field Details
-
action
private final int actionAction number.
-
-
Constructor Details
-
HandleEMail
private HandleEMail(int action) Ordinal constructor.- Parameters:
action
- Action number
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAction
public int getAction()Get action number.- Returns:
- Action number
-