@Test public void testToString() { String result = period1.toString(); assertFalse(period2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("Period:").append('\n'); if (begining != null) { s.append("begin:").append(begining).append('\n'); } if (ending != null) { s.append("end:").append(ending).append('\n'); } return s.toString(); }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public String toString() { StringBuilder s = new StringBuilder("Period:").append('\n'); if (begining != null) { s.append("begin:").append(begining).append('\n'); } if (ending != null) { s.append("end:").append(ending).append('\n'); } return s.toString(); } }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public String toString() { StringBuilder s = new StringBuilder("Period:").append('\n'); if (begining != null) { s.append("begin:").append(begining).append('\n'); } if (ending != null) { s.append("end:").append(ending).append('\n'); } return s.toString(); } DefaultPeriod(Instant begining, Instant ending); }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public String toString() { StringBuilder s = new StringBuilder("Period:").append('\n'); if (begining != null) { s.append("begin:").append(begining).append('\n'); } if (ending != null) { s.append("end:").append(ending).append('\n'); } return s.toString(); } DefaultPeriod(Instant begining, Instant ending); Instant getBeginning(); void setBegining(Instant begining); void setBegining(Date date); Instant getEnding(); void setEnding(Instant ending); void setEnding(Date date); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period { @Override public String toString() { StringBuilder s = new StringBuilder("Period:").append('\n'); if (begining != null) { s.append("begin:").append(begining).append('\n'); } if (ending != null) { s.append("end:").append(ending).append('\n'); } return s.toString(); } DefaultPeriod(Instant begining, Instant ending); Instant getBeginning(); void setBegining(Instant begining); void setBegining(Date date); Instant getEnding(); void setEnding(Instant ending); void setEnding(Date date); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }