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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum 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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintGet 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_DENIEDNo email address is denied as username.
- 
EMAIL_REQUIREDUsername must be an email address.
- 
EMAIL_POSSIBLEUsername can be an email address, but it's not required.
 
- 
- 
Field Details- 
actionprivate final int actionAction number.
 
- 
- 
Constructor Details- 
HandleEMailprivate HandleEMail(int action) Ordinal constructor.- Parameters:
- action- Action number
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getActionpublic int getAction()Get action number.- Returns:
- Action number
 
 
-