T - the type of the constrained values.public interface Constraint<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(T v)
Returns
true if a value satisfies the constraint. |
boolean accepts(T v)
true if a value satisfies the constraint.v - the value.true if the value satisfies the constraint, false if it does not.Copyright © 2018. All Rights Reserved.