![JAR search and dependency download from the Maven repository](/logo.png)
com.launchdarkly.testhelpers.InternalHelpers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-helpers Show documentation
Show all versions of test-helpers Show documentation
LaunchDarkly Java test helpers
package com.launchdarkly.testhelpers;
import java.util.concurrent.TimeUnit;
abstract class InternalHelpers {
static TimeUnit timeUnit(TimeUnit unit) {
return unit == null ? TimeUnit.MILLISECONDS : unit;
}
static String timeDesc(long value, TimeUnit unit) {
String unitName = timeUnit(unit).name().toLowerCase();
return String.format("%d %s", value, value == 1 ? unitName.substring(0, unitName.length() - 1) : unitName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy