Skip to content
Browse files

Added ctors

  • Loading branch information...
1 parent aad0c67 commit 5e50c04b0dc9bc615c900826408028956f18dacf @kolorobot committed Apr 20, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/main/java/com/github/kolorobot/web/form/RegistrationForm.java
View
15 src/main/java/com/github/kolorobot/web/form/RegistrationForm.java
@@ -11,11 +11,26 @@
@NotBlank
private String username;
+
@NotBlank
private String password;
private String confirmedPassword;
+
+ public RegistrationForm() {
+ }
+
+ public RegistrationForm(String username) {
+ this.username = username;
+ }
+
+ public RegistrationForm(String username, String password, String confirmedPassword) {
+ this(username);
+ this.password = password;
+ this.confirmedPassword = confirmedPassword;
+ }
+
public String getUsername() {
return username;
}

0 comments on commit 5e50c04

Please sign in to comment.
Something went wrong with that request. Please try again.