@Test public void testSymbols_5m_10m_15m() { DurationFormatter df = new DurationFormatter(Type.SHORT_SYMBOLS); assertEquals("5min", df.format(DefaultDuration.of(5, MINUTES))); assertEquals("10min", df.format(DefaultDuration.of(10, MINUTES))); assertEquals("15min", df.format(DefaultDuration.of(15, MINUTES))); }
public String format(Duration duration) { return this.df.formatMillis((long) duration .getValue(TimeUnit.MILLISECONDS)); }
DurationFormatter { public String format(Duration duration) { return this.df.formatMillis((long) duration .getValue(TimeUnit.MILLISECONDS)); } }
DurationFormatter { public String format(Duration duration) { return this.df.formatMillis((long) duration .getValue(TimeUnit.MILLISECONDS)); } DurationFormatter(Type type); }
DurationFormatter { public String format(Duration duration) { return this.df.formatMillis((long) duration .getValue(TimeUnit.MILLISECONDS)); } DurationFormatter(Type type); String format(Duration duration); }
DurationFormatter { public String format(Duration duration) { return this.df.formatMillis((long) duration .getValue(TimeUnit.MILLISECONDS)); } DurationFormatter(Type type); String format(Duration duration);  }