adding all of botlist, initial add
[botlist.git] / botlistprojects / laughingman / test / ircproxy / src / jbouncer / User.java
blob4eec785756881587a2d339ad1e1e2eeb45f202a3
1 /*
2 Copyright Paul James Mutton, 2001-2004, http://www.jibble.org/
4 This file is part of JBouncer.
6 This software is dual-licensed, allowing you to choose between the GNU
7 General Public License (GPL) and the www.jibble.org Commercial License.
8 Since the GPL may be too restrictive for use in a proprietary application,
9 a commercial license is also provided. Full license information can be
10 found at http://www.jibble.org/licenses/
12 $Author: pjm2 $
13 $Id: User.java,v 1.2 2004/03/01 19:13:37 pjm2 Exp $
17 package jbouncer;
19 public class User {
21 public User(String login, String password) {
22 this.login = login;
23 this.password = password;
26 public String getLogin() {
27 return login;
30 public String getPassword() {
31 return password;
34 public int hashCode() {
35 return login.hashCode() + password.hashCode();
38 public boolean equals(Object o) {
39 User other = (User) o;
40 return other.login.equals(login) && other.password.equals(password);
43 private String login;
44 private String password;