public boolean equals()

in geoentitylinker-addon/src/main/java/opennlp/addons/geoentitylinker/AdminBoundary.java [93:120]


  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final AdminBoundary other = (AdminBoundary) obj;
    if (!Objects.equals(this.countryCode, other.countryCode)) {
      return false;
    }
    if (!Objects.equals(this.provinceCode, other.provinceCode)) {
      return false;
    }
    if (!Objects.equals(this.provinceName, other.provinceName)) {
      return false;
    }
    if (!Objects.equals(this.countryName, other.countryName)) {
      return false;
    }
    if (!Objects.equals(this.countyName, other.countyName)) {
      return false;
    }
    if (!Objects.equals(this.countyCode, other.countyCode)) {
      return false;
    }
    return true;
  }