@Test public void testEquals() { assertFalse(ordinalReferenceSystem1.equals(null)); assertEquals(ordinalReferenceSystem1, ordinalReferenceSystem1); assertFalse(ordinalReferenceSystem1.equals(ordinalReferenceSystem2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalReferenceSystem && super.equals(object)) { final DefaultOrdinalReferenceSystem that = (DefaultOrdinalReferenceSystem) object; return Utilities.equals(this.ordinalEraSequence, that.ordinalEraSequence); } return false; }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalReferenceSystem && super.equals(object)) { final DefaultOrdinalReferenceSystem that = (DefaultOrdinalReferenceSystem) object; return Utilities.equals(this.ordinalEraSequence, that.ordinalEraSequence); } return false; } }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalReferenceSystem && super.equals(object)) { final DefaultOrdinalReferenceSystem that = (DefaultOrdinalReferenceSystem) object; return Utilities.equals(this.ordinalEraSequence, that.ordinalEraSequence); } return false; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalReferenceSystem && super.equals(object)) { final DefaultOrdinalReferenceSystem that = (DefaultOrdinalReferenceSystem) object; return Utilities.equals(this.ordinalEraSequence, that.ordinalEraSequence); } return false; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); Collection<OrdinalEra> getOrdinalEraSequence(); @Override String toWKT(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultOrdinalReferenceSystem && super.equals(object)) { final DefaultOrdinalReferenceSystem that = (DefaultOrdinalReferenceSystem) object; return Utilities.equals(this.ordinalEraSequence, that.ordinalEraSequence); } return false; } DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence); Collection<OrdinalEra> getOrdinalEraSequence(); @Override String toWKT(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }