Constructor and Description |
---|
Negation(Predicate predicate)
Constructs a new negation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate()
Implements the
Predicate interface by defining the
evaluate() method. |
Predicate |
getPredicate()
Returns the predicate to be negated.
|
void |
setPredicate(Predicate predicate)
Sets the predicate to be negated.
|
java.lang.String |
toString()
Textual representation.
|
public Negation(Predicate predicate)
predicate
- the predicate to be negated.public Predicate getPredicate()
public void setPredicate(Predicate predicate)
predicate
- the new predicate to be negated.public boolean evaluate()
Predicate
interface by defining the
evaluate() method.public java.lang.String toString()
toString
in class java.lang.Object