net.sf.jga.fn.logical
public class BinaryNegate<T1,T2> extends AbstractBinaryPredicate<T1,T2> implements Serializable
Copyright © 2002 David A. Hall
Nested Class Summary | |
---|---|
interface | BinaryNegate.Visitor
Interface for classes that may interpret a BinaryNegate
predicate. |
Constructor Summary | |
---|---|
BinaryNegate(BinaryFunctor<? super T1,? super T2,Boolean> p)
Builds a BinaryNegate predicate wrapping the given Binary Predicate. |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(UnaryNegate) method, if it
implements the nested Visitor interface. |
BinaryFunctor<? super T1,? super T2,Boolean> | getPredicate()
Returns the child predicate. |
boolean | p(T1 x, T2 y)
Given arguments x and y, returns true when child
predicate p returns false for x and y, otherwise returns true.
|
String | toString() |
Throws: IllegalArgumentException when no child predicate is given
visit(UnaryNegate)
method, if it
implements the nested Visitor interface.Returns: the child predicate.
Returns: !(p.p(x,y))