/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ws.access.user; /** * * @author jonas */ class User { String login; String password; public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final User other = (User) obj; if (this.login != other.login && (this.login == null || !this.login.equals(other.login))) { return false; } if (this.password != other.password && (this.password == null || !this.password.equals(other.password))) { return false; } return true; } @Override public int hashCode() { int hash = 5; hash = 97 * hash + (this.login != null ? this.login.hashCode() : 0); hash = 97 * hash + (this.password != null ? this.password.hashCode() : 0); return hash; } }