public boolean equals()

in postgrenosql/src/main/java/site/ycsb/postgrenosql/StatementType.java [74:107]


  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }

    if (getClass() != obj.getClass()) {
      return false;
    }

    StatementType other = (StatementType) obj;
    if (type != other.type) {
      return false;
    }

    if (tableName == null) {
      if (other.tableName != null) {
        return false;
      }
    } else if (!tableName.equals(other.tableName)) {
      return false;
    }

    if (fields == null) {
      if (other.fields != null) {
        return false;
      }
    }else if (!fields.equals(other.fields)) {
      return false;
    }
    return true;
  }