Skip to content

Instantly share code, notes, and snippets.

Arnaud Geiser arnaudgeiser

Block or report user

Report or block arnaudgeiser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View validator_usage.java
List<String> validations = createValidator("ch.arnaudgeiser.InvalidGmailAddress", (Person p) -> Pattern.matches(p.getName(), ".*@gmail\\.com")).apply(person);
System.out.println(validations);
View person_jsr303.java
public class Person {
@Email
private String email;
@Size(min = 8)
private String firstname;
@NotNull
@Future
private Date future;
You can’t perform that action at this time.