org.holmes.statement.SimpleStatement 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.statement;
import org.holmes.Evaluator;
import org.holmes.Statement;
/**
* A simple {@link Statement}, whose evaluation result is delegated to an
* {@link Evaluator}.
*
* @author diegossilveira
*/
public class SimpleStatement implements Statement {
private final Evaluator> evaluator;
public SimpleStatement(Evaluator> evaluator) {
this.evaluator = evaluator;
}
@Override
public boolean evaluate() {
return evaluator.evaluate();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy