@Test public void testToString() { String result = clock1.toString(); assertFalse(clock2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("Clock:").append('\n'); if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceTime != null) { s.append("referenceTime:").append(referenceTime).append('\n'); } if (utcReference != null) { s.append("utcReference:").append(utcReference).append('\n'); } if (dateBasis != null) { s.append("dateBasis:").append(dateBasis).append('\n'); } return s.toString(); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public String toString() { StringBuilder s = new StringBuilder("Clock:").append('\n'); if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceTime != null) { s.append("referenceTime:").append(referenceTime).append('\n'); } if (utcReference != null) { s.append("utcReference:").append(utcReference).append('\n'); } if (dateBasis != null) { s.append("dateBasis:").append(dateBasis).append('\n'); } return s.toString(); } }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public String toString() { StringBuilder s = new StringBuilder("Clock:").append('\n'); if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceTime != null) { s.append("referenceTime:").append(referenceTime).append('\n'); } if (utcReference != null) { s.append("utcReference:").append(utcReference).append('\n'); } if (dateBasis != null) { s.append("dateBasis:").append(dateBasis).append('\n'); } return s.toString(); } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public String toString() { StringBuilder s = new StringBuilder("Clock:").append('\n'); if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceTime != null) { s.append("referenceTime:").append(referenceTime).append('\n'); } if (utcReference != null) { s.append("utcReference:").append(utcReference).append('\n'); } if (dateBasis != null) { s.append("dateBasis:").append(dateBasis).append('\n'); } return s.toString(); } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); InternationalString getReferenceEvent(); ClockTime getReferenceTime(); ClockTime getUTCReference(); ClockTime clkTrans(ClockTime uTime); ClockTime utcTrans(ClockTime clkTime); void setReferenceEvent(InternationalString referenceEvent); void setReferenceTime(ClockTime referenceTime); void setUtcReference(ClockTime utcReference); Collection<Calendar> getDateBasis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultClock extends DefaultTemporalReferenceSystem implements Clock { @Override public String toString() { StringBuilder s = new StringBuilder("Clock:").append('\n'); if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceTime != null) { s.append("referenceTime:").append(referenceTime).append('\n'); } if (utcReference != null) { s.append("utcReference:").append(utcReference).append('\n'); } if (dateBasis != null) { s.append("dateBasis:").append(dateBasis).append('\n'); } return s.toString(); } DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference); InternationalString getReferenceEvent(); ClockTime getReferenceTime(); ClockTime getUTCReference(); ClockTime clkTrans(ClockTime uTime); ClockTime utcTrans(ClockTime clkTime); void setReferenceEvent(InternationalString referenceEvent); void setReferenceTime(ClockTime referenceTime); void setUtcReference(ClockTime utcReference); Collection<Calendar> getDateBasis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }