@Test public void testHashCode() { int result = clock1.hashCode(); assertFalse(clock2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.dateBasis != null ? this.dateBasis.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); hash = 37 * hash + (this.referenceTime != null ? this.referenceTime.hashCode() : 0); hash = 37 * hash + (this.utcReference != null ? this.utcReference.hashCode() : 0); return hash; }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.dateBasis != null ? this.dateBasis.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); hash = 37 * hash + (this.referenceTime != null ? this.referenceTime.hashCode() : 0); hash = 37 * hash + (this.utcReference != null ? this.utcReference.hashCode() : 0); return hash; } }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.dateBasis != null ? this.dateBasis.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); hash = 37 * hash + (this.referenceTime != null ? this.referenceTime.hashCode() : 0); hash = 37 * hash + (this.utcReference != null ? this.utcReference.hashCode() : 0); return hash; } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.dateBasis != null ? this.dateBasis.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); hash = 37 * hash + (this.referenceTime != null ? this.referenceTime.hashCode() : 0); hash = 37 * hash + (this.utcReference != null ? this.utcReference.hashCode() : 0); return hash; } 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 int hashCode() { int hash = 5; hash = 37 * hash + (this.dateBasis != null ? this.dateBasis.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); hash = 37 * hash + (this.referenceTime != null ? this.referenceTime.hashCode() : 0); hash = 37 * hash + (this.utcReference != null ? this.utcReference.hashCode() : 0); return hash; } 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();  }