Package akka.util
Class PrettyDuration.PrettyPrintableDuration
- java.lang.Object
-
- scala.AnyVal
-
- akka.util.PrettyDuration.PrettyPrintableDuration
-
- Enclosing class:
- PrettyDuration
public static class PrettyDuration.PrettyPrintableDuration extends scala.AnyVal
-
-
Constructor Summary
Constructors Constructor Description PrettyPrintableDuration(scala.concurrent.duration.Duration duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
abbreviate(java.util.concurrent.TimeUnit unit)
java.util.concurrent.TimeUnit
chooseUnit(long nanos)
scala.concurrent.duration.Duration
duration()
boolean
equals(java.lang.Object x$1)
int
hashCode()
java.lang.String
pretty()
Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precisionjava.lang.String
pretty(boolean includeNanos, int precision)
Selects most appropriate TimeUnit for given duration and formats it accordinglyint
pretty$default$2()
-
-
-
Method Detail
-
duration
public scala.concurrent.duration.Duration duration()
-
pretty
public java.lang.String pretty()
Selects most appropriate TimeUnit for given duration and formats it accordingly, with 4 digits precision
-
pretty
public java.lang.String pretty(boolean includeNanos, int precision)
Selects most appropriate TimeUnit for given duration and formats it accordingly
-
pretty$default$2
public int pretty$default$2()
-
chooseUnit
public java.util.concurrent.TimeUnit chooseUnit(long nanos)
-
abbreviate
public java.lang.String abbreviate(java.util.concurrent.TimeUnit unit)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Overrides:
equals
in classjava.lang.Object
-
-