@Test public void testHashCode() { int result = temporalReferenceSystem1.hashCode(); assertFalse(temporalReferenceSystem2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.alias != null ? this.alias.hashCode() : 0); hash = 37 * hash + (this.domainOfValidity != null ? this.domainOfValidity.hashCode() : 0); hash = 37 * hash + (this.identifiers != null ? this.identifiers.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.remarks != null ? this.remarks.hashCode() : 0); hash = 37 * hash + (this.scope != null ? this.scope.hashCode() : 0); hash = 37 * hash + (this.validArea != null ? this.validArea.hashCode() : 0); return hash; }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.alias != null ? this.alias.hashCode() : 0); hash = 37 * hash + (this.domainOfValidity != null ? this.domainOfValidity.hashCode() : 0); hash = 37 * hash + (this.identifiers != null ? this.identifiers.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.remarks != null ? this.remarks.hashCode() : 0); hash = 37 * hash + (this.scope != null ? this.scope.hashCode() : 0); hash = 37 * hash + (this.validArea != null ? this.validArea.hashCode() : 0); return hash; } }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.alias != null ? this.alias.hashCode() : 0); hash = 37 * hash + (this.domainOfValidity != null ? this.domainOfValidity.hashCode() : 0); hash = 37 * hash + (this.identifiers != null ? this.identifiers.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.remarks != null ? this.remarks.hashCode() : 0); hash = 37 * hash + (this.scope != null ? this.scope.hashCode() : 0); hash = 37 * hash + (this.validArea != null ? this.validArea.hashCode() : 0); return hash; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.alias != null ? this.alias.hashCode() : 0); hash = 37 * hash + (this.domainOfValidity != null ? this.domainOfValidity.hashCode() : 0); hash = 37 * hash + (this.identifiers != null ? this.identifiers.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.remarks != null ? this.remarks.hashCode() : 0); hash = 37 * hash + (this.scope != null ? this.scope.hashCode() : 0); hash = 37 * hash + (this.validArea != null ? this.validArea.hashCode() : 0); return hash; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); ReferenceIdentifier getName(); Extent getDomainOfValidity(); @Deprecated Extent getValidArea(); InternationalString getScope(); Collection<GenericName> getAlias(); Set<ReferenceIdentifier> getIdentifiers(); InternationalString getRemarks(); String toWKT(); void setName(ReferenceIdentifier name); void setDomainOfValidity(Extent domainOfValidity); void setValidArea(Extent validArea); void setScope(InternationalString scope); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.alias != null ? this.alias.hashCode() : 0); hash = 37 * hash + (this.domainOfValidity != null ? this.domainOfValidity.hashCode() : 0); hash = 37 * hash + (this.identifiers != null ? this.identifiers.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.remarks != null ? this.remarks.hashCode() : 0); hash = 37 * hash + (this.scope != null ? this.scope.hashCode() : 0); hash = 37 * hash + (this.validArea != null ? this.validArea.hashCode() : 0); return hash; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); ReferenceIdentifier getName(); Extent getDomainOfValidity(); @Deprecated Extent getValidArea(); InternationalString getScope(); Collection<GenericName> getAlias(); Set<ReferenceIdentifier> getIdentifiers(); InternationalString getRemarks(); String toWKT(); void setName(ReferenceIdentifier name); void setDomainOfValidity(Extent domainOfValidity); void setValidArea(Extent validArea); void setScope(InternationalString scope); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }