public class Not<T> extends BaseConstraint<T>
| Constructor and Description |
|---|
Not(Constraint<T> c)
Creates an instance from one more constraints.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(T t)
Returns
true if a value satisfies the constraint. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
public Not(Constraint<T> c)
public boolean accepts(T t)
Constrainttrue if a value satisfies the constraint.t - the value.true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<T>Copyright © 2017. All Rights Reserved.