public class DefaultRuleRegistry extends java.lang.Object implements RuleRegistry
| Modifier and Type | Field and Description |
|---|---|
static RuleRegistry |
REGISTRY_DEFAULT |
| Constructor and Description |
|---|
DefaultRuleRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
register(ValidationRule rule)
Adds the given rule to this registry.
|
java.util.stream.Stream<ValidationRule> |
stream()
Stream the rules of this registry.
|
public static final RuleRegistry REGISTRY_DEFAULT
public void register(ValidationRule rule)
RuleRegistryregister in interface RuleRegistryrule - the rule to registerpublic java.util.stream.Stream<ValidationRule> stream()
RuleRegistrystream in interface RuleRegistry