@Override
        public boolean equals(Object obj) {
            if (!(obj instanceof Address)) {
                return false;
            }
            Address otherA = (Address) obj;
            if (this.settlment == null) {
                return otherA.getSettlment() == null;
            } else if (this.country == null) {
                return otherA.getCountry() == null;
            } else if (this.postCode == null) {
                return otherA.getPostCode() == null;
            } else if (this.region == null) {
                return otherA.getRegion() == null;
            }

            return this.settlment.equals(otherA.getSettlment()) &&
                    this.country.equals(otherA.getCountry()) &&
                    this.postCode.equals(otherA.getPostCode()) &&
                    this.region.equals(otherA.getRegion());
        }
@param country the country to set
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/src/main/java/org/apache/tika/parser/journal/TEIDOMParser.java