org.shapelogic.predicate
Interface BinaryPredicate<E>

All Known Implementing Classes:
BinaryEqualPredicate, BinaryGreaterPredicate, BinarySmallerPredicate

public interface BinaryPredicate<E>

Predicate with 2 arguments.

BinaryPredicate is close to the Apache Commons BinaryPredicateBinaryFunction.

But defined independently since Commons Functor lib is still a sand box lib.

Author:
Sami Badawi

Method Summary
 boolean evaluate(E left, E right)
          Checks if a binary predicate relation holds.
 java.lang.String getName()
          Used in factory.
 

Method Detail

evaluate

boolean evaluate(E left,
                 E right)
Checks if a binary predicate relation holds.


getName

java.lang.String getName()
Used in factory.



Copyright © 2007. All Rights Reserved.