Package akka.util

Class 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 precision
      java.lang.String pretty​(boolean includeNanos, int precision)
      Selects most appropriate TimeUnit for given duration and formats it accordingly
      int pretty$default$2()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrettyPrintableDuration

        public PrettyPrintableDuration​(scala.concurrent.duration.Duration duration)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Overrides:
        equals in class java.lang.Object