Package org.passay
Enum RuleResultMetadata.CountCategory
- java.lang.Object
-
- java.lang.Enum<RuleResultMetadata.CountCategory>
-
- org.passay.RuleResultMetadata.CountCategory
-
- All Implemented Interfaces:
Serializable
,Comparable<RuleResultMetadata.CountCategory>
- Enclosing class:
- RuleResultMetadata
public static enum RuleResultMetadata.CountCategory extends Enum<RuleResultMetadata.CountCategory>
Count category.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
exists(String name)
Deprecated.use the standardvalueOf(String)
insteadstatic RuleResultMetadata.CountCategory
valueOf(String name)
Returns the enum constant of this type with the specified name.static RuleResultMetadata.CountCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Length
public static final RuleResultMetadata.CountCategory Length
password length.
-
LowerCase
public static final RuleResultMetadata.CountCategory LowerCase
lowercase characters.
-
UpperCase
public static final RuleResultMetadata.CountCategory UpperCase
uppercase characters.
-
Digit
public static final RuleResultMetadata.CountCategory Digit
digit characters.
-
Special
public static final RuleResultMetadata.CountCategory Special
special characters.
-
Whitespace
public static final RuleResultMetadata.CountCategory Whitespace
whitespace characters.
-
Allowed
public static final RuleResultMetadata.CountCategory Allowed
allowed characters.
-
Illegal
public static final RuleResultMetadata.CountCategory Illegal
illegal characters.
-
-
Method Detail
-
values
public static RuleResultMetadata.CountCategory[] 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 (RuleResultMetadata.CountCategory c : RuleResultMetadata.CountCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuleResultMetadata.CountCategory valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
exists
@Deprecated public static boolean exists(String name)
Deprecated.use the standardvalueOf(String)
insteadReturns whether a count category exists with the supplied name.- Parameters:
name
- to check.- Returns:
- whether the supplied name exists.
-
-