|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jga.fn.Functor<R>
net.sf.jga.fn.BinaryFunctor<T1,T2,java.lang.Boolean>
net.sf.jga.fn.logical.BinaryNegate<T1,T2>
public class BinaryNegate<T1,T2>
Binary Predicate that logically negates the result of a child predicate. Returns true when child predicate p returns false given object arguments x and y.
Copyright © 2002-2005 David A. Hall
| Nested Class Summary | |
|---|---|
static interface |
BinaryNegate.Visitor
Interface for classes that may interpret a BinaryNegate predicate. |
| Constructor Summary | |
|---|---|
BinaryNegate(BinaryFunctor<? super T1,? super T2,java.lang.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. |
java.lang.Boolean |
fn(T1 x,
T2 y)
Given arguments x and y, returns true when child predicate p returns false for x and y, otherwise returns true. |
BinaryFunctor<? super T1,? super T2,java.lang.Boolean> |
getPredicate()
Returns the child predicate. |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.jga.fn.BinaryFunctor |
|---|
bind, bind0th, bind1st, bind2nd, bindNth, compose, compose, composeNth, distribute, eval, generate, generate1st, generate2nd, generateNth |
| Methods inherited from class net.sf.jga.fn.Functor |
|---|
composeNth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryNegate(BinaryFunctor<? super T1,? super T2,java.lang.Boolean> p)
java.lang.IllegalArgumentException - when no child predicate is given| Method Detail |
|---|
public BinaryFunctor<? super T1,? super T2,java.lang.Boolean> getPredicate()
public java.lang.Boolean fn(T1 x,
T2 y)
fn in class BinaryFunctor<T1,T2,java.lang.Boolean>public void accept(Visitor v)
visit(UnaryNegate) method, if it
implements the nested Visitor interface.
accept in interface Visitableaccept in class Functor<java.lang.Boolean>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||