public class RegexConstraint extends ValuedConstraint<java.util.regex.Pattern,java.lang.CharSequence>
STRING_MATCHING constraint type.ConstraintType.STRING_MATCHING| Constructor and Description |
|---|
RegexConstraint(java.util.regex.Pattern value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(java.lang.CharSequence value)
Tests a value against this
ConfigValue. |
getValuegetTypepublic boolean test(java.lang.CharSequence value)
ConstraintConfigValue.test in class Constraint<java.lang.CharSequence>value - the valuetrue if value satisfies the constraint