@Test public void testEquals() { assertFalse(calendar1.equals(null)); assertEquals(calendar1, calendar1); assertFalse(calendar1.equals(calendar2)); }
@Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; } }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; } 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 boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultCalendar && super.equals(object)) { final DefaultCalendar that = (DefaultCalendar) object; return Utilities.equals(this.basis, that.basis) && Utilities.equals(this.timeBasis, that.timeBasis); } return false; } 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();  }