Skip to content

Instantly share code, notes, and snippets.

@arnaudgeiser
Created April 12, 2017 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaudgeiser/a8ffcffc28868d9c999ef6b44311c265 to your computer and use it in GitHub Desktop.
Save arnaudgeiser/a8ffcffc28868d9c999ef6b44311c265 to your computer and use it in GitHub Desktop.
List<String> validations = createValidator("ch.arnaudgeiser.InvalidGmailAddress", (Person p) -> Pattern.matches(p.getName(), ".*@gmail\\.com")).apply(person);
System.out.println(validations);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment