Package akka.util
Class PrettyDuration
- java.lang.Object
-
- akka.util.PrettyDuration
-
public class PrettyDuration extends java.lang.Object
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrettyDuration.PrettyPrintableDuration
static class
PrettyDuration.PrettyPrintableDuration$
-
Constructor Summary
Constructors Constructor Description PrettyDuration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
format(scala.concurrent.duration.Duration duration)
JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precisionstatic java.lang.String
format(scala.concurrent.duration.Duration duration, boolean includeNanos, int precision)
JAVA API Selects most appropriate TimeUnit for given duration and formats it accordinglystatic PrettyDuration.PrettyPrintableDuration
PrettyPrintableDuration(scala.concurrent.duration.Duration duration)
-
-
-
Method Detail
-
format
public static java.lang.String format(scala.concurrent.duration.Duration duration)
JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precision
-
format
public static java.lang.String format(scala.concurrent.duration.Duration duration, boolean includeNanos, int precision)
JAVA API Selects most appropriate TimeUnit for given duration and formats it accordingly
-
PrettyPrintableDuration
public static PrettyDuration.PrettyPrintableDuration PrettyPrintableDuration(scala.concurrent.duration.Duration duration)
-
-