T
- public interface ValidationFunction<T>
ValidationFunction
. A object of this
class could be passed to a ValidationConstraint
.Modifier and Type | Method and Description |
---|---|
boolean |
check(ValidationContext ctx,
T t)
Returns
true if the constraint is valid and false
if it's broken. |
boolean check(ValidationContext ctx, T t)
true
if the constraint is valid and false
if it's broken.ctx,
- the context in which the validation is performedt,
- the object to checkfalse
if the constraint is broken