net.sf.adatagenerator.pred
Interface Predicate<R>

Type Parameters:
R - the record type
All Known Implementing Classes:
AbstractPredicate, ExactMatchPredicate, ReflectionPredicate, StringPredicate, TrimmedStringsLowerCase, TrimmedSubstringsLowerCase

Deprecated. Moved to the com.choicemaker.correlation package

public interface Predicate<R>

A predicate is a simple boolean test on a pair of records. Typically, a predicate checks some condition on one or a small number of fields of the records. For example, a predicate might check whether two fields agree exactly or approximately or not at all.

Author:
rphall

Method Summary
 boolean evaluate(com.choicemaker.shared.api.CMPair<? extends R> pair)
          Deprecated. Evaluates whether a pair of records satisfies this predicate.
 String getName()
          Deprecated.  
 

Method Detail

getName

String getName()
Deprecated. 

evaluate

boolean evaluate(com.choicemaker.shared.api.CMPair<? extends R> pair)
                 throws EvaluationException
Deprecated. 
Evaluates whether a pair of records satisfies this predicate.

Parameters:
pair - a non-null pair of records
Returns:
true if the pairs satisfies this predicate; false otherwise
Throws:
EvaluationException - if an exception occurs during the evaluation


Copyright © 2011-2012. All Rights Reserved.