Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Verify whether two ConnectionRequestInfos are equal.
if (obj == null) return false;
if (obj instanceof ConnectionRequestInfo) {
ConnectionRequestInfo other = (ConnectionRequestInfo) obj;
return (isEqual(this.user, other.user) &&
isEqual(this.password, other.password));
} else {
return false;
}
|
public java.lang.String | getPassword()Retrieves the password of the ConnectionRequestInfo.
return password;
|
public java.lang.String | getUser()Retrieves the user name of the ConnectionRequestInfo.
return user;
|
public int | hashCode()Retrieves the hashcode of the object.
String result = "" + user + password;
return result.hashCode();
|
private boolean | isEqual(java.lang.Object o1, java.lang.Object o2)Compares two objects.
if (o1 == null) {
return (o2 == null);
} else {
return o1.equals(o2);
}
|