示例#1
0
 @Override
 public int hashCode() {
   int result = (reln != null ? reln.hashCode() : 17);
   result = 29 * result + (gov != null ? gov.hashCode() : 0);
   result = 29 * result + (dep != null ? dep.hashCode() : 0);
   return result;
 }
示例#2
0
  @SuppressWarnings({"RedundantIfStatement"})
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof TypedDependency)) {
      return false;
    }
    final TypedDependency typedDep = (TypedDependency) o;

    if (reln != null ? !reln.equals(typedDep.reln) : typedDep.reln != null) {
      return false;
    }
    if (gov != null ? !gov.equals(typedDep.gov) : typedDep.gov != null) {
      return false;
    }
    if (dep != null ? !dep.equals(typedDep.dep) : typedDep.dep != null) {
      return false;
    }

    return true;
  }