// Path: src/main/java/de/jformchecker/Criterion.java
// @FunctionalInterface
// public interface Criterion {
// 	/**
// 	 * Tests whether the specified value satisfies this criterion.
// 	 * 
// 	 * @param value
// 	 *            to be tested against this criterion.
// 	 * @return a ValidationResult which holds true or false for validaton result
// 	 *         and a potential errormsg
// 	 */
// 	public ValidationResult validate(FormCheckerElement value);
// 
// }


import de.jformchecker.Criterion;
package de.jformchecker.criteria;


/**
 * A collection of static methods to create commonly used criteria.
 * 
 * Based on work of armandino (at) gmail.com
 */
public class Criteria {
	private static final Email email = new Email();
	private static final ZipCode zipCode = new ZipCode();
	private static final PostcodeCA postcodeCA = new PostcodeCA();

// Path: src/main/java/de/jformchecker/Criterion.java
// @FunctionalInterface
// public interface Criterion {
// 	/**
// 	 * Tests whether the specified value satisfies this criterion.
// 	 * 
// 	 * @param value
// 	 *            to be tested against this criterion.
// 	 * @return a ValidationResult which holds true or false for validaton result
// 	 *         and a potential errormsg
// 	 */
// 	public ValidationResult validate(FormCheckerElement value);
// 
// }


// Path: src/main/java/de/jformchecker/criteria/Criteria.java
import de.jformchecker.Criterion;

package de.jformchecker.criteria;


/**
 * A collection of static methods to create commonly used criteria.
 * 
 * Based on work of armandino (at) gmail.com
 */
public class Criteria {
	private static final Email email = new Email();
	private static final ZipCode zipCode = new ZipCode();
	private static final PostcodeCA postcodeCA = new PostcodeCA();

	public static Criterion and(Criterion... criteria) {