@Test public void testHashCode() { int result = calendarEra1.hashCode(); assertFalse(calendarEra2.hashCode() == result); }
@Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.datingSystem != null ? this.datingSystem.hashCode() : 0); hash = 37 * hash + (this.epochOfUse != null ? this.epochOfUse.hashCode() : 0); hash = 37 * hash + (this.julianReference != null ? this.julianReference.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.referenceDate != null ? this.referenceDate.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); return hash; }
DefaultCalendarEra implements CalendarEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.datingSystem != null ? this.datingSystem.hashCode() : 0); hash = 37 * hash + (this.epochOfUse != null ? this.epochOfUse.hashCode() : 0); hash = 37 * hash + (this.julianReference != null ? this.julianReference.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.referenceDate != null ? this.referenceDate.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); return hash; } }
DefaultCalendarEra implements CalendarEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.datingSystem != null ? this.datingSystem.hashCode() : 0); hash = 37 * hash + (this.epochOfUse != null ? this.epochOfUse.hashCode() : 0); hash = 37 * hash + (this.julianReference != null ? this.julianReference.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.referenceDate != null ? this.referenceDate.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); return hash; } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); }
DefaultCalendarEra implements CalendarEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.datingSystem != null ? this.datingSystem.hashCode() : 0); hash = 37 * hash + (this.epochOfUse != null ? this.epochOfUse.hashCode() : 0); hash = 37 * hash + (this.julianReference != null ? this.julianReference.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.referenceDate != null ? this.referenceDate.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); return hash; } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); InternationalString getName(); InternationalString getReferenceEvent(); CalendarDate getReferenceDate(); JulianDate getJulianReference(); Period getEpochOfUse(); void setName(InternationalString name); void setReferenceEvent(InternationalString referenceEvent); void setReferenceDate(CalendarDate referenceDate); void setJulianReference(JulianDate julianReference); void setEpochOfUse(Period epochOfUse); Collection<Calendar> getDatingSystem(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultCalendarEra implements CalendarEra { @Override public int hashCode() { int hash = 5; hash = 37 * hash + (this.datingSystem != null ? this.datingSystem.hashCode() : 0); hash = 37 * hash + (this.epochOfUse != null ? this.epochOfUse.hashCode() : 0); hash = 37 * hash + (this.julianReference != null ? this.julianReference.hashCode() : 0); hash = 37 * hash + (this.name != null ? this.name.hashCode() : 0); hash = 37 * hash + (this.referenceDate != null ? this.referenceDate.hashCode() : 0); hash = 37 * hash + (this.referenceEvent != null ? this.referenceEvent.hashCode() : 0); return hash; } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); InternationalString getName(); InternationalString getReferenceEvent(); CalendarDate getReferenceDate(); JulianDate getJulianReference(); Period getEpochOfUse(); void setName(InternationalString name); void setReferenceEvent(InternationalString referenceEvent); void setReferenceDate(CalendarDate referenceDate); void setJulianReference(JulianDate julianReference); void setEpochOfUse(Period epochOfUse); Collection<Calendar> getDatingSystem(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }