Example #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof ParameterNameValue == false) return false;
    ParameterNameValue other = (ParameterNameValue) obj;
    if (other.getParameterName() == null ^ this.getParameterName() == null) return false;
    if (other.getParameterName() != null
        && other.getParameterName().equals(this.getParameterName()) == false) return false;
    if (other.getParameterValue() == null ^ this.getParameterValue() == null) return false;
    if (other.getParameterValue() != null
        && other.getParameterValue().equals(this.getParameterValue()) == false) return false;
    return true;
  }