@Test public void testEquals() { assertFalse(temporalPosition1.equals(null)); assertEquals(temporalPosition1, temporalPosition1); assertFalse(temporalPosition1.equals(temporalPosition2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalPosition) { final DefaultTemporalPosition that = (DefaultTemporalPosition) object; return Utilities.equals(this.frame, that.frame) && Utilities.equals(this.indeterminatePosition, that.indeterminatePosition); } return false; }
DefaultTemporalPosition implements TemporalPosition { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalPosition) { final DefaultTemporalPosition that = (DefaultTemporalPosition) object; return Utilities.equals(this.frame, that.frame) && Utilities.equals(this.indeterminatePosition, that.indeterminatePosition); } return false; } }
DefaultTemporalPosition implements TemporalPosition { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalPosition) { final DefaultTemporalPosition that = (DefaultTemporalPosition) object; return Utilities.equals(this.frame, that.frame) && Utilities.equals(this.indeterminatePosition, that.indeterminatePosition); } return false; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); }
DefaultTemporalPosition implements TemporalPosition { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalPosition) { final DefaultTemporalPosition that = (DefaultTemporalPosition) object; return Utilities.equals(this.frame, that.frame) && Utilities.equals(this.indeterminatePosition, that.indeterminatePosition); } return false; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalPosition implements TemporalPosition { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultTemporalPosition) { final DefaultTemporalPosition that = (DefaultTemporalPosition) object; return Utilities.equals(this.frame, that.frame) && Utilities.equals(this.indeterminatePosition, that.indeterminatePosition); } return false; } DefaultTemporalPosition(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition); IndeterminateValue getIndeterminatePosition(); TemporalReferenceSystem getFrame(); void setFrame(TemporalReferenceSystem frame); void setIndeterminatePosition(IndeterminateValue indeterminatePosition); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }