@Test public void testEquals() { assertFalse(clock1.equals(null)); assertEquals(clock1, clock1); assertFalse(clock1.equals(clock2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final DefaultClock that; if (object instanceof DefaultClock) { that = (DefaultClock) object; return Utilities.equals(this.dateBasis, that.dateBasis) && Utilities.equals(this.referenceEvent, that.referenceEvent) && Utilities.equals(this.referenceTime, that.referenceTime) && Utilities.equals(this.utcReference, that.utcReference); } } return false; }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final DefaultClock that; if (object instanceof DefaultClock) { that = (DefaultClock) object; return Utilities.equals(this.dateBasis, that.dateBasis) && Utilities.equals(this.referenceEvent, that.referenceEvent) && Utilities.equals(this.referenceTime, that.referenceTime) && Utilities.equals(this.utcReference, that.utcReference); } } return false; } }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final DefaultClock that; if (object instanceof DefaultClock) { that = (DefaultClock) object; return Utilities.equals(this.dateBasis, that.dateBasis) && Utilities.equals(this.referenceEvent, that.referenceEvent) && Utilities.equals(this.referenceTime, that.referenceTime) && Utilities.equals(this.utcReference, that.utcReference); } } return false; } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final DefaultClock that; if (object instanceof DefaultClock) { that = (DefaultClock) object; return Utilities.equals(this.dateBasis, that.dateBasis) && Utilities.equals(this.referenceEvent, that.referenceEvent) && Utilities.equals(this.referenceTime, that.referenceTime) && Utilities.equals(this.utcReference, that.utcReference); } } return false; } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); InternationalString getReferenceEvent(); ClockTime getReferenceTime(); ClockTime getUTCReference(); ClockTime clkTrans(ClockTime uTime); ClockTime utcTrans(ClockTime clkTime); void setReferenceEvent(InternationalString referenceEvent); void setReferenceTime(ClockTime referenceTime); void setUtcReference(ClockTime utcReference); Collection<Calendar> getDateBasis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final DefaultClock that; if (object instanceof DefaultClock) { that = (DefaultClock) object; return Utilities.equals(this.dateBasis, that.dateBasis) && Utilities.equals(this.referenceEvent, that.referenceEvent) && Utilities.equals(this.referenceTime, that.referenceTime) && Utilities.equals(this.utcReference, that.utcReference); } } return false; } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); InternationalString getReferenceEvent(); ClockTime getReferenceTime(); ClockTime getUTCReference(); ClockTime clkTrans(ClockTime uTime); ClockTime utcTrans(ClockTime clkTime); void setReferenceEvent(InternationalString referenceEvent); void setReferenceTime(ClockTime referenceTime); void setUtcReference(ClockTime utcReference); Collection<Calendar> getDateBasis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }