public static class ConstraintEvaluator.Result
extends java.lang.Object
ConstraintEvaluator. This combines a boolean that indicates
whether or not the target satisfied the constraint, and, if it did not, a string that includes the reason
why.| Constructor and Description |
|---|
Result(boolean successful,
java.lang.String failureReason) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFailureReason()
Returns the reason why the target did not satisfy the constraint.
|
boolean |
isSuccessful()
Indicates whether the constraint evaluator found the target to satisfy the constraint.
|
public boolean isSuccessful()
true if the target satisfies the constraint, false otherwisepublic java.lang.String getFailureReason()