@Test public void testEquals() { assertFalse(calendarEra1.equals(null)); assertEquals(calendarEra1, calendarEra1); assertFalse(calendarEra1.equals(calendarEra2)); }
@Override public boolean equals(final Object object) { if (object instanceof CalendarEra) { final DefaultCalendarEra that = (DefaultCalendarEra) object; return Utilities.equals(this.datingSystem, that.datingSystem) && Utilities.equals(this.epochOfUse, that.epochOfUse) && Utilities.equals(this.julianReference, that.julianReference) && Utilities.equals(this.name, that.name) && Utilities.equals(this.referenceDate, that.referenceDate) && Utilities.equals(this.referenceEvent, that.referenceEvent); } return false; }
DefaultCalendarEra implements CalendarEra { @Override public boolean equals(final Object object) { if (object instanceof CalendarEra) { final DefaultCalendarEra that = (DefaultCalendarEra) object; return Utilities.equals(this.datingSystem, that.datingSystem) && Utilities.equals(this.epochOfUse, that.epochOfUse) && Utilities.equals(this.julianReference, that.julianReference) && Utilities.equals(this.name, that.name) && Utilities.equals(this.referenceDate, that.referenceDate) && Utilities.equals(this.referenceEvent, that.referenceEvent); } return false; } }
DefaultCalendarEra implements CalendarEra { @Override public boolean equals(final Object object) { if (object instanceof CalendarEra) { final DefaultCalendarEra that = (DefaultCalendarEra) object; return Utilities.equals(this.datingSystem, that.datingSystem) && Utilities.equals(this.epochOfUse, that.epochOfUse) && Utilities.equals(this.julianReference, that.julianReference) && Utilities.equals(this.name, that.name) && Utilities.equals(this.referenceDate, that.referenceDate) && Utilities.equals(this.referenceEvent, that.referenceEvent); } return false; } DefaultCalendarEra(InternationalString name, InternationalString referenceEvent, CalendarDate referenceDate, JulianDate julianReference, Period epochOfUse); }
DefaultCalendarEra implements CalendarEra { @Override public boolean equals(final Object object) { if (object instanceof CalendarEra) { final DefaultCalendarEra that = (DefaultCalendarEra) object; return Utilities.equals(this.datingSystem, that.datingSystem) && Utilities.equals(this.epochOfUse, that.epochOfUse) && Utilities.equals(this.julianReference, that.julianReference) && Utilities.equals(this.name, that.name) && Utilities.equals(this.referenceDate, that.referenceDate) && Utilities.equals(this.referenceEvent, that.referenceEvent); } return false; } 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 boolean equals(final Object object) { if (object instanceof CalendarEra) { final DefaultCalendarEra that = (DefaultCalendarEra) object; return Utilities.equals(this.datingSystem, that.datingSystem) && Utilities.equals(this.epochOfUse, that.epochOfUse) && Utilities.equals(this.julianReference, that.julianReference) && Utilities.equals(this.name, that.name) && Utilities.equals(this.referenceDate, that.referenceDate) && Utilities.equals(this.referenceEvent, that.referenceEvent); } return false; } 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();  }