1 16 25 package org.apache.cocoon.samples.flow.prefs; 26 27 31 public class User 32 { 33 String login; 34 String password; 35 String firstName; 36 String lastName; 37 String email; 38 39 public User(String login, String password, 40 String firstName, String lastName, String email) 41 { 42 this.login = login; 43 this.password = password; 44 this.firstName = firstName; 45 this.lastName = lastName; 46 this.email = email; 47 } 48 49 public int hashCode() 50 { 51 return login.hashCode(); 52 } 53 54 public boolean equals(Object obj) 55 { 56 User anotherUser = (User)obj; 57 return anotherUser.login.equals(login); 58 } 59 60 65 public void setLogin(String argLogin) 66 { 67 this.login = argLogin; 68 } 69 74 public String getLogin() 75 { 76 return this.login; 77 } 78 79 84 public String getPassword() 85 { 86 return this.password; 87 } 88 89 94 public void setPassword(String argPassword) 95 { 96 this.password = argPassword; 97 } 98 99 104 public String getFirstName() 105 { 106 return this.firstName; 107 } 108 109 114 public void setFirstName(String argFirstName) 115 { 116 this.firstName = argFirstName; 117 } 118 119 124 public String getLastName() 125 { 126 return this.lastName; 127 } 128 129 134 public void setLastName(String argLastName) 135 { 136 this.lastName = argLastName; 137 } 138 139 144 public String getEmail() 145 { 146 return this.email; 147 } 148 149 154 public void setEmail(String argEmail) 155 { 156 this.email = argEmail; 157 } 158 } 159 | Popular Tags |