org.jcon.data
Class FieldCriterion

java.lang.Object
  extended by org.jcon.data.FieldCriterion
All Implemented Interfaces:
UnaryPredicate

public class FieldCriterion
extends java.lang.Object
implements UnaryPredicate

A criterion for looking up an record based on the values of some of its fields.


Constructor Summary
FieldCriterion(java.util.ArrayList fieldsOfInterest, java.util.Map fieldValues)
          Creates a new FieldCriterion that checks to see if all the fields of interest in the examined object match those in the provided Map.
 
Method Summary
 boolean execute(java.lang.Object victim)
          Evaluate if an object suits this criterion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldCriterion

public FieldCriterion(java.util.ArrayList fieldsOfInterest,
                      java.util.Map fieldValues)
Creates a new FieldCriterion that checks to see if all the fields of interest in the examined object match those in the provided Map.

Method Detail

execute

public boolean execute(java.lang.Object victim)
Evaluate if an object suits this criterion.

Specified by:
execute in interface UnaryPredicate