All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.apamatesoft.validator.Rule Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package com.apamatesoft.validator;

import com.apamatesoft.validator.functions.Validate;

public class Rule {

    private final String message;
    private final Validate validate;

    public Rule(String message, Validate validate) {
        this.validate = validate;
        this.message = message;
    }

    public boolean validate(String evaluate) {
        return validate.invoke(evaluate);
    }

    public String getMessage() {
        return message;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy