if (other == null || !(other.getClass() == WrappedConnectionRequestInfo.class))
{
return false;
}
WrappedConnectionRequestInfo cri = (WrappedConnectionRequestInfo) other;
if (user == null)
{
if (cri.getUserName() != null)
{
return false;
}
}
else
{
if (!user.equals(cri.getUserName()))
{
return false;
}
}
if (password == null)
{
if (cri.getPassword() != null)
{
return false;
}
}
else
{
if (!password.equals(cri.getPassword()))
{
return false;
}
}
return true;