net.sf.jga.fn
Class BinaryPredicate<T1,T2>

java.lang.Object
  extended by net.sf.jga.fn.BinaryFunctor<T1,T2,java.lang.Boolean>
      extended by net.sf.jga.fn.BinaryPredicate<T1,T2>
All Implemented Interfaces:
java.io.Serializable, Visitable
Direct Known Subclasses:
AndBinary, BinaryNegate, ElementOf, Equality, Greater, GreaterEqual, Less, LessEqual, LogicalAnd, LogicalOr, NotEqualEqual, NotEqualTo, OrBinary

public abstract class BinaryPredicate<T1,T2>
extends BinaryFunctor<T1,T2,java.lang.Boolean>

A Predicate that takes two arguments and returns a boolean result. The two arguments are of type T1 and T2

Copyright © 2002 David A. Hall

Author:
David A. Hall
See Also:
Serialized Form

Constructor Summary
BinaryPredicate()
           
 
Method Summary
 boolean p(T1 arg1, T2 arg2)
          Evaluates the predicate and returns true or false.
 
Methods inherited from class net.sf.jga.fn.BinaryFunctor
accept, bind, bind1st, bind2nd, compose, compose, distribute, fn, generate, generate1st, generate2nd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryPredicate

public BinaryPredicate()
Method Detail

p

public boolean p(T1 arg1,
                 T2 arg2)
Evaluates the predicate and returns true or false.



Copyright © 2002-2005 David A. Hall. All Rights Reserved.