/** * @return a new instance of a validator checking for a input string representing an integer contained in the given set */ public static Validator<String> containedInteger(Set<Integer> validValues) { return new ContainedIntegerValidator(validValues); }