added user handling

This commit is contained in:
Andreas Billmann
2015-03-28 14:52:15 +01:00
parent e08dae2eed
commit 4056b97c16
9 changed files with 263 additions and 11 deletions

View File

@@ -60,4 +60,20 @@ public class User {
public void setName(String name) {
this.name.set(name);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
User user = (User) o;
return id.equals(user.id);
}
@Override
public int hashCode() {
return id.hashCode();
}
}