@Override public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  DummyCredentials other=(DummyCredentials)obj;
  if (password == null) {
    if (other.password != null) {
      return false;
    }
  }
 else   if (!password.equals(other.password)) {
    return false;
  }
  if (token == null) {
    if (other.token != null) {
      return false;
    }
  }
 else   if (!token.equals(other.token)) {
    return false;
  }
  if (username == null) {
    if (other.username != null) {
      return false;
    }
  }
 else   if (!username.equals(other.username)) {
    return false;
  }
  return true;
}

@ Override public boolean equals ( Object obj ) { if ( this == obj ) { return true ; } if ( obj == null ) { return false ; } if ( getClass ( ) != obj . getClass ( ) ) { return false ; } DummyCredentials other = ( DummyCredentials ) obj ; if ( password == null ) { if ( other . password != null ) { return false ; } } else if ( ! password . equals ( other . password ) ) { return false ; } if ( token == null ) { if ( other . token != null ) { return false ; } } else if ( ! token . equals ( other . token ) ) { return false ; } if ( username == null ) { if ( other . username != null ) { return false ; } } else if ( ! username . equals ( other . username ) ) { return false ; } return true ; }
returns true if the other object is equals to this object
