@Test public void testToString() { String result = calendar1.toString(); assertFalse(calendar2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("Calendar:").append('\n'); if (timeBasis != null) { s.append("clock:").append(timeBasis).append('\n'); } if (basis != null) { s.append("basis:").append(basis).append('\n'); } return super.toString().concat("\n").concat(s.toString()); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public String toString() { StringBuilder s = new StringBuilder("Calendar:").append('\n'); if (timeBasis != null) { s.append("clock:").append(timeBasis).append('\n'); } if (basis != null) { s.append("basis:").append(basis).append('\n'); } return super.toString().concat("\n").concat(s.toString()); } }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public String toString() { StringBuilder s = new StringBuilder("Calendar:").append('\n'); if (timeBasis != null) { s.append("clock:").append(timeBasis).append('\n'); } if (basis != null) { s.append("basis:").append(basis).append('\n'); } return super.toString().concat("\n").concat(s.toString()); } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { @Override public String toString() { StringBuilder s = new StringBuilder("Calendar:").append('\n'); if (timeBasis != null) { s.append("clock:").append(timeBasis).append('\n'); } if (basis != null) { s.append("basis:").append(basis).append('\n'); } return super.toString().concat("\n").concat(s.toString()); } 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 String toString() { StringBuilder s = new StringBuilder("Calendar:").append('\n'); if (timeBasis != null) { s.append("clock:").append(timeBasis).append('\n'); } if (basis != null) { s.append("basis:").append(basis).append('\n'); } return super.toString().concat("\n").concat(s.toString()); } 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();  }