Exemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof AccountAttribute == false) return false;
    AccountAttribute other = (AccountAttribute) obj;

    if (other.getAttributeName() == null ^ this.getAttributeName() == null) return false;
    if (other.getAttributeName() != null
        && other.getAttributeName().equals(this.getAttributeName()) == false) return false;
    if (other.getAttributeValues() == null ^ this.getAttributeValues() == null) return false;
    if (other.getAttributeValues() != null
        && other.getAttributeValues().equals(this.getAttributeValues()) == false) return false;
    return true;
  }