@Test public void testToDuration() { assertEquals(duration, ConfigurationUtils.toDuration(durationInMillis)); assertEquals("1y", ConfigurationUtils.toDuration(Times.MS_PER_YEAR)); assertEquals("2y", ConfigurationUtils.toDuration(2 * Times.MS_PER_YEAR)); assertEquals("1m", ConfigurationUtils.toDuration(Times.MS_PER_MONTH)); assertEquals("2m", ConfigurationUtils.toDuration(2 * Times.MS_PER_MONTH)); assertEquals("1w", ConfigurationUtils.toDuration(Times.MS_PER_WEEK)); assertEquals("2w", ConfigurationUtils.toDuration(2 * Times.MS_PER_WEEK)); assertEquals("1d", ConfigurationUtils.toDuration(Times.MS_PER_DAY)); assertEquals("2d", ConfigurationUtils.toDuration(2 * Times.MS_PER_DAY)); assertEquals("1H", ConfigurationUtils.toDuration(Times.MS_PER_HOUR)); assertEquals("2H", ConfigurationUtils.toDuration(2 * Times.MS_PER_HOUR)); assertEquals("1M", ConfigurationUtils.toDuration(Times.MS_PER_MIN)); assertEquals("2M", ConfigurationUtils.toDuration(2 * Times.MS_PER_MIN)); }
public static String toDuration(long millis) { return toDuration(millis, false); }
ConfigurationUtils { public static String toDuration(long millis) { return toDuration(millis, false); } }
ConfigurationUtils { public static String toDuration(long millis) { return toDuration(millis, false); } private  ConfigurationUtils(); }
ConfigurationUtils { public static String toDuration(long millis) { return toDuration(millis, false); } private  ConfigurationUtils(); static Object getValue(Object object, Object defaultObject); static Object getValue(Object object, Object defaultObject,
      boolean processTemplates); static int getValue(String value, int defaultValue); static long getValue(String value, long defaultValue); static String[] getMultiOptionValues(String optionValue); static boolean isDefault(Node node); static boolean isTrue(Node node); static boolean isTrue(String value); static boolean isTrue(String value, boolean defaultValue); static boolean isFalse(String value); static boolean isFalse(String value, boolean defaultValue); static boolean isEnabled(String value); static boolean isEnabled(String value, boolean defaultValue); static boolean isDisabled(String value); static boolean isDisabled(String value, boolean defaultValue); static String toHumanReadableDuration(long millis); static String toDuration(long millis); static long parseDuration(String duration); static String processTemplate(String text); static String processTemplate(String text,
      Map<String, String> variables); static String processTemplate(String text, Module module,
      Environment environment); static String processTemplate(String text, Site site,
      Environment environment); }
ConfigurationUtils { public static String toDuration(long millis) { return toDuration(millis, false); } private  ConfigurationUtils(); static Object getValue(Object object, Object defaultObject); static Object getValue(Object object, Object defaultObject,
      boolean processTemplates); static int getValue(String value, int defaultValue); static long getValue(String value, long defaultValue); static String[] getMultiOptionValues(String optionValue); static boolean isDefault(Node node); static boolean isTrue(Node node); static boolean isTrue(String value); static boolean isTrue(String value, boolean defaultValue); static boolean isFalse(String value); static boolean isFalse(String value, boolean defaultValue); static boolean isEnabled(String value); static boolean isEnabled(String value, boolean defaultValue); static boolean isDisabled(String value); static boolean isDisabled(String value, boolean defaultValue); static String toHumanReadableDuration(long millis); static String toDuration(long millis); static long parseDuration(String duration); static String processTemplate(String text); static String processTemplate(String text,
      Map<String, String> variables); static String processTemplate(String text, Module module,
      Environment environment); static String processTemplate(String text, Site site,
      Environment environment);  }