Package org.passay
Class RuleResultMetadata
java.lang.Object
org.passay.RuleResultMetadata
Describes metadata relevant to the result of rule validation.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<RuleResultMetadata.CountCategory,Integer> Character count metadata. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new rule result metadata.RuleResultMetadata(List<RuleResultMetadata> metadata) Creates a new rule result metadata.RuleResultMetadata(RuleResultMetadata metadata) Creates a new rule result metadata.RuleResultMetadata(RuleResultMetadata.CountCategory category, int value) Creates a new rule result metadata. -
Method Summary
Modifier and TypeMethodDescriptionintgetCount(RuleResultMetadata.CountCategory category) Returns the count for the supplied category.Returns an unmodifiable map of all count metadata.booleanhasCount(RuleResultMetadata.CountCategory category) Returns whether a count exists for the supplied category.toString()
-
Field Details
-
counts
Character count metadata.
-
-
Constructor Details
-
RuleResultMetadata
public RuleResultMetadata()Creates a new rule result metadata. -
RuleResultMetadata
Creates a new rule result metadata.- Parameters:
category- count category.value- count value.
-
RuleResultMetadata
Creates a new rule result metadata.- Parameters:
metadata- to copy.
-
RuleResultMetadata
Creates a new rule result metadata.- Parameters:
metadata- to copy.
-
-
Method Details
-
hasCount
Returns whether a count exists for the supplied category.- Parameters:
category- of the count.- Returns:
- whether a count exists.
-
getCount
Returns the count for the supplied category.- Parameters:
category- of the count.- Returns:
- character count.
-
getCounts
Returns an unmodifiable map of all count metadata.- Returns:
- count metadata.
-
toString
-