@Test public void createDurationReportParam() { ReportEntry reportEntry = ReportEntryFactory.createDurationReportEntry("report.key", 3600000); assertEquals("report.key", reportEntry.getKey()); assertEquals(ReportEntryType.DURATION, reportEntry.getType()); assertEquals("3600000", reportEntry.getValue()); }
public static ReportEntry createDurationReportEntry(String key, long duration) { return new ReportEntry(key, ReportEntryType.DURATION, String.valueOf(duration)); }
ReportEntryFactory { public static ReportEntry createDurationReportEntry(String key, long duration) { return new ReportEntry(key, ReportEntryType.DURATION, String.valueOf(duration)); } }
ReportEntryFactory { public static ReportEntry createDurationReportEntry(String key, long duration) { return new ReportEntry(key, ReportEntryType.DURATION, String.valueOf(duration)); } private  ReportEntryFactory(); }
ReportEntryFactory { public static ReportEntry createDurationReportEntry(String key, long duration) { return new ReportEntry(key, ReportEntryType.DURATION, String.valueOf(duration)); } private  ReportEntryFactory(); static ReportEntry createCounterReportEntry(String key, long count); static ReportEntry createDurationReportEntry(String key, long duration); }
ReportEntryFactory { public static ReportEntry createDurationReportEntry(String key, long duration) { return new ReportEntry(key, ReportEntryType.DURATION, String.valueOf(duration)); } private  ReportEntryFactory(); static ReportEntry createCounterReportEntry(String key, long count); static ReportEntry createDurationReportEntry(String key, long duration);  }