implicit final class EnrichedDuration extends AnyVal
- Alphabetic
- By Inheritance
- EnrichedDuration
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EnrichedDuration(duration: Duration)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val duration: Duration
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
humanize: String
Return a better-formatted result than
toString
.Return a better-formatted result than
toString
. For instance, given thisDuration
:Duration(13123, "milliseconds")
the standard
toString
method will return "13123 milliseconds". By contrast,humanize
will return "13 seconds, 123 milliseconds".Similarly:
val d = Duration(172801003, "milliseconds") d.toString // 172801003 milliseconds d.humanize // 2 days, 1 second, 3 milliseconds
- returns
something nicer
- Annotations
- @SuppressWarnings()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any