@Test public void toString1() throws ParseException { TimePeriod timePeriod = new TimePeriod(5L * 365 * 24 * 3600 * 1000 + 3 * 3600 * 1000 + 5 * 60 * 1000); String string = timePeriod.toString(); assertThat(string).isEqualTo("5\u202Fa 3\u202Fh 5\u202Fmin"); }
@Override public String toString() { return toString(TimeUnit.getUniqueTimeUnitsOrderedByLengthDesc()); }
TimePeriod { @Override public String toString() { return toString(TimeUnit.getUniqueTimeUnitsOrderedByLengthDesc()); } }
TimePeriod { @Override public String toString() { return toString(TimeUnit.getUniqueTimeUnitsOrderedByLengthDesc()); } TimePeriod(String string);  TimePeriod(long millis); }
TimePeriod { @Override public String toString() { return toString(TimeUnit.getUniqueTimeUnitsOrderedByLengthDesc()); } TimePeriod(String string);  TimePeriod(long millis); @Override String toString(); String toString(final TimeUnit ... timeUnits); String toString(final Collection<TimeUnit> timeUnits); long toMillis(); Map<TimeUnit, Long> toTimeUnitMap(); Map<TimeUnit, Long> toTimeUnitMap(final TimeUnit ... timeUnits); Map<TimeUnit, Long> toTimeUnitMap(Collection<TimeUnit> timeUnits); @Override int hashCode(); @Override boolean equals(Object obj); }
TimePeriod { @Override public String toString() { return toString(TimeUnit.getUniqueTimeUnitsOrderedByLengthDesc()); } TimePeriod(String string);  TimePeriod(long millis); @Override String toString(); String toString(final TimeUnit ... timeUnits); String toString(final Collection<TimeUnit> timeUnits); long toMillis(); Map<TimeUnit, Long> toTimeUnitMap(); Map<TimeUnit, Long> toTimeUnitMap(final TimeUnit ... timeUnits); Map<TimeUnit, Long> toTimeUnitMap(Collection<TimeUnit> timeUnits); @Override int hashCode(); @Override boolean equals(Object obj);  }