@Test public void isIntegerWithInteger() { assertTrue(isInteger().isValid("10")); }
public static IValidator<String> isInteger() { return value -> { try { Integer.parseInt(value); return true; } catch (NumberFormatException ex) { return false; } }; }
Validators { public static IValidator<String> isInteger() { return value -> { try { Integer.parseInt(value); return true; } catch (NumberFormatException ex) { return false; } }; } }
Validators { public static IValidator<String> isInteger() { return value -> { try { Integer.parseInt(value); return true; } catch (NumberFormatException ex) { return false; } }; }  }
Validators { public static IValidator<String> isInteger() { return value -> { try { Integer.parseInt(value); return true; } catch (NumberFormatException ex) { return false; } }; }  static IValidator<String> isNotEmpty(); static IValidator<String> isInteger(); static IValidator<String> isIntegerOrBlank(); static IValidator<String> isDouble(); }
Validators { public static IValidator<String> isInteger() { return value -> { try { Integer.parseInt(value); return true; } catch (NumberFormatException ex) { return false; } }; }  static IValidator<String> isNotEmpty(); static IValidator<String> isInteger(); static IValidator<String> isIntegerOrBlank(); static IValidator<String> isDouble();  }