@Test public void testHashCode() { int result = calendar1.hashCode(); assertFalse(calendar2.hashCode() == result); }
@Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.timeBasis != null ? this.timeBasis.hashCode() : 0); hash = 37 * hash + (this.basis != null ? this.basis.hashCode() : 0); return hash; }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.timeBasis != null ? this.timeBasis.hashCode() : 0); hash = 37 * hash + (this.basis != null ? this.basis.hashCode() : 0); return hash; } }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.timeBasis != null ? this.timeBasis.hashCode() : 0); hash = 37 * hash + (this.basis != null ? this.basis.hashCode() : 0); return hash; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.timeBasis != null ? this.timeBasis.hashCode() : 0); hash = 37 * hash + (this.basis != null ? this.basis.hashCode() : 0); return hash; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); JulianDate dateTrans(CalendarDate calDate, ClockTime time); JulianDate dateTrans(DateAndTime dateAndTime); CalendarDate julTrans(JulianDate jdt); Collection<CalendarEra> getBasis(); Clock getClock(); void setBasis(Collection<CalendarEra> basis); void setClock(Clock clock); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public int hashCode() { int hash = super.hashCode(); hash = 37 * hash + (this.timeBasis != null ? this.timeBasis.hashCode() : 0); hash = 37 * hash + (this.basis != null ? this.basis.hashCode() : 0); return hash; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); JulianDate dateTrans(CalendarDate calDate, ClockTime time); JulianDate dateTrans(DateAndTime dateAndTime); CalendarDate julTrans(JulianDate jdt); Collection<CalendarEra> getBasis(); Clock getClock(); void setBasis(Collection<CalendarEra> basis); void setClock(Clock clock); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }