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

no.difi.certvalidator.structure.Junction Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package no.difi.certvalidator.structure;

import no.difi.certvalidator.api.ValidatorRule;

/**
 * Allows combining instances of validators using a limited set of logic.
 */
public class Junction {

    public static AndJunction and(ValidatorRule... validatorRules) {
        return new AndJunction(validatorRules);
    }

    public static OrJunction or(ValidatorRule... validatorRules) {
        return new OrJunction(validatorRules);
    }

    public static XorJunction xor(ValidatorRule... validatorRules) {
        return new XorJunction(validatorRules);
    }

    Junction() {
        // No action
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy