public class Match extends BaseConstraint<Object>
String.| Constructor and Description |
|---|
Match(String regex)
Creates an instance from a regular expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object o)
Returns
true if a value satisfies the constraint. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
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 © 2017. All Rights Reserved.