示例#1
0
  public int hashCode() {
    int result;
    result = ((id != null) ? id.hashCode() : 0);
    result = (31 * result) + ((kind != null) ? kind.hashCode() : 0);

    return result;
  }
示例#2
0
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if ((o == null) || (getClass() != o.getClass())) {
      return false;
    }

    RepoConflict that = (RepoConflict) o;

    if ((id != null) ? (!id.equals(that.id)) : (that.id != null)) {
      return false;
    }

    if ((kind != null) ? (!kind.equals(that.kind)) : (that.kind != null)) {
      return false;
    }

    return true;
  }