public class Match extends BaseConstraint<Object>
String.| Constructor and Description |
|---|
Match(String regex)
Creates an instance from a regular expression.
|
public Match(String regex)
regex - the regular expressionpublic boolean accepts(Object o)
true if a value satisfies the constraint.o - the value.true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<Object>Copyright © 2018. All Rights Reserved.