org.holmes.Evaluator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of holmes-validation Show documentation
Show all versions of holmes-validation Show documentation
Holmes is a library that provides a simple and fluent API for writing business rules validations on Java projects.
The newest version!
package org.holmes;
/**
* An evaluator is the last piece in the validation chain. Evaluating a target
* instance by some specific logic is it's responsibility.
*
* @author diegossilveira
*
* @param
* the type evaluated by this Evaluator.
*/
public interface Evaluator {
/**
* Used to set the {@link Joint} on this Evaluator.
*
* @param joint
*/
void setJoint(Joint joint);
/**
* Evaluates the target by specific logic.
*
* @return true
if the target conforms to the logic,
* false
otherwise.
*/
boolean evaluate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy