@Test public void testEquals() { assertFalse(temporalReferenceSystem1.equals(null)); assertEquals(temporalReferenceSystem1, temporalReferenceSystem1); assertFalse(temporalReferenceSystem1.equals(temporalReferenceSystem2)); }
@Override public boolean equals(final Object object) { if (object instanceof DefaultTemporalReferenceSystem) { final DefaultTemporalReferenceSystem that = (DefaultTemporalReferenceSystem) object; return Utilities.equals(this.alias, that.alias) && Utilities.equals(this.domainOfValidity, that.domainOfValidity) && Utilities.equals(this.identifiers, that.identifiers) && Utilities.equals(this.name, that.name) && Utilities.equals(this.scope, that.scope) && Utilities.equals(this.validArea, that.validArea) && Utilities.equals(this.remarks, that.remarks); } return false; }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public boolean equals(final Object object) { if (object instanceof DefaultTemporalReferenceSystem) { final DefaultTemporalReferenceSystem that = (DefaultTemporalReferenceSystem) object; return Utilities.equals(this.alias, that.alias) && Utilities.equals(this.domainOfValidity, that.domainOfValidity) && Utilities.equals(this.identifiers, that.identifiers) && Utilities.equals(this.name, that.name) && Utilities.equals(this.scope, that.scope) && Utilities.equals(this.validArea, that.validArea) && Utilities.equals(this.remarks, that.remarks); } return false; } }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public boolean equals(final Object object) { if (object instanceof DefaultTemporalReferenceSystem) { final DefaultTemporalReferenceSystem that = (DefaultTemporalReferenceSystem) object; return Utilities.equals(this.alias, that.alias) && Utilities.equals(this.domainOfValidity, that.domainOfValidity) && Utilities.equals(this.identifiers, that.identifiers) && Utilities.equals(this.name, that.name) && Utilities.equals(this.scope, that.scope) && Utilities.equals(this.validArea, that.validArea) && Utilities.equals(this.remarks, that.remarks); } return false; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { @Override public boolean equals(final Object object) { if (object instanceof DefaultTemporalReferenceSystem) { final DefaultTemporalReferenceSystem that = (DefaultTemporalReferenceSystem) object; return Utilities.equals(this.alias, that.alias) && Utilities.equals(this.domainOfValidity, that.domainOfValidity) && Utilities.equals(this.identifiers, that.identifiers) && Utilities.equals(this.name, that.name) && Utilities.equals(this.scope, that.scope) && Utilities.equals(this.validArea, that.validArea) && Utilities.equals(this.remarks, that.remarks); } return false; } 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 boolean equals(final Object object) { if (object instanceof DefaultTemporalReferenceSystem) { final DefaultTemporalReferenceSystem that = (DefaultTemporalReferenceSystem) object; return Utilities.equals(this.alias, that.alias) && Utilities.equals(this.domainOfValidity, that.domainOfValidity) && Utilities.equals(this.identifiers, that.identifiers) && Utilities.equals(this.name, that.name) && Utilities.equals(this.scope, that.scope) && Utilities.equals(this.validArea, that.validArea) && Utilities.equals(this.remarks, that.remarks); } return false; } 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();  }