Methods Summary |
---|
public boolean | equals(java.lang.Object backendPrincipal)Overloaded method from "Object" class
Checks the equality.
if(backendPrincipal == null ||
!(backendPrincipal instanceof EisBackendPrincipal)) {
return false;
}
EisBackendPrincipal eisBackendPrincipal =
(EisBackendPrincipal)backendPrincipal;
if(isEqual(eisBackendPrincipal.userName,this.userName) &&
isEqual(eisBackendPrincipal.password,this.password)) {
return true;
} else {
return false;
}
|
public java.lang.String | getPassword()Getter method for Password property
return password;
|
public java.lang.String | getUserName()Getter method for UserName property
return userName;
|
public int | hashCode()Overloaded method from "Object" class
Generates the hashcode
int result = 67;
if(userName != null)
result = 67 * result + userName.hashCode();
if(password != null)
result = 67*result + password.hashCode();
return result;
|
private boolean | isEqual(java.lang.String in, java.lang.String out)Checks whether two strings are equal including the null string
cases.
if(in == null && out == null) {
return true;
}
if(in == null || out == null) {
return false;
}
return (out.equals(in));
|
public void | setPassword(java.lang.String password)Setter method for password property
this.password = password;
|
public void | setUserName(java.lang.String userName)Setter method for UserName property
this.userName = userName;
|