|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.rules.constraint.Not
public class Not
"Nots" another unary constraint (the inverse) by using composition.
| Constructor Summary | |
|---|---|
Not()
Creates a UnaryNot in temporary invalid state - please use only if you have to, the well-formed constructor is much preferred. |
|
Not(Constraint constraint)
Creates a UnaryNot |
|
| Method Summary | |
|---|---|
Constraint |
getConstraint()
|
void |
setConstraint(Constraint constraint)
|
boolean |
test(Object value)
Negates the boolean result returned by testing the wrapped constraint. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Not()
public Not(Constraint constraint)
constraint - The constraint to negate.| Method Detail |
|---|
public void setConstraint(Constraint constraint)
public boolean test(Object value)
test in interface Constraintvalue - the argument value
true if the condition was satisfied,
false otherwiseConstraint.test(java.lang.Object)public String toString()
toString in class Objectpublic Constraint getConstraint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||