@Test public void testEquals() { assertFalse(temporalCoordinateSystem1.equals(null)); assertEquals(temporalCoordinateSystem1, temporalCoordinateSystem1); assertFalse(temporalCoordinateSystem1.equals(temporalCoordinateSystem2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinateSystem && super.equals(object)) { if (object instanceof DefaultTemporalCoordinateSystem) { final DefaultTemporalCoordinateSystem that = (DefaultTemporalCoordinateSystem) object; return Utilities.equals(this.interval, that.interval) && Utilities.equals(this.origin, that.origin); } } return false; }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinateSystem && super.equals(object)) { if (object instanceof DefaultTemporalCoordinateSystem) { final DefaultTemporalCoordinateSystem that = (DefaultTemporalCoordinateSystem) object; return Utilities.equals(this.interval, that.interval) && Utilities.equals(this.origin, that.origin); } } return false; } }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinateSystem && super.equals(object)) { if (object instanceof DefaultTemporalCoordinateSystem) { final DefaultTemporalCoordinateSystem that = (DefaultTemporalCoordinateSystem) object; return Utilities.equals(this.interval, that.interval) && Utilities.equals(this.origin, that.origin); } } return false; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinateSystem && super.equals(object)) { if (object instanceof DefaultTemporalCoordinateSystem) { final DefaultTemporalCoordinateSystem that = (DefaultTemporalCoordinateSystem) object; return Utilities.equals(this.interval, that.interval) && Utilities.equals(this.origin, that.origin); } } return false; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); void setOrigin(Date origin); void setInterval(InternationalString interval); Date getOrigin(); InternationalString getInterval(); Date transformCoord(TemporalCoordinate c_value); TemporalCoordinate transformDateTime(Date dateTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalCoordinateSystem extends DefaultTemporalReferenceSystem implements TemporalCoordinateSystem { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinateSystem && super.equals(object)) { if (object instanceof DefaultTemporalCoordinateSystem) { final DefaultTemporalCoordinateSystem that = (DefaultTemporalCoordinateSystem) object; return Utilities.equals(this.interval, that.interval) && Utilities.equals(this.origin, that.origin); } } return false; } DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval); void setOrigin(Date origin); void setInterval(InternationalString interval); Date getOrigin(); InternationalString getInterval(); Date transformCoord(TemporalCoordinate c_value); TemporalCoordinate transformDateTime(Date dateTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }