@Test public void testEquals() { assertFalse(temporalCoordinate1.equals(null)); assertEquals(temporalCoordinate1, temporalCoordinate1); assertFalse(temporalCoordinate1.equals(temporalCoordinate2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; } }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); Number getCoordinateValue(); void setCoordinateValue(Number coordinateValue); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalCoordinate extends DefaultTemporalPosition implements TemporalCoordinate { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalCoordinate && super.equals(object)) { final DefaultTemporalCoordinate that = (DefaultTemporalCoordinate) object; return Utilities.equals(this.coordinateValue, that.coordinateValue); } return false; } DefaultTemporalCoordinate(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, Number coordinateValue); Number getCoordinateValue(); void setCoordinateValue(Number coordinateValue); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }