Class PrettyDuration$


  • public class PrettyDuration$
    extends java.lang.Object
    INTERNAL API
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PrettyDuration$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrettyDuration$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      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
      PrettyDuration.PrettyPrintableDuration PrettyPrintableDuration​(scala.concurrent.duration.Duration duration)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final PrettyDuration$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • PrettyDuration$

        public PrettyDuration$()
    • Method Detail

      • format

        public 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 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