public class DurationConverters$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DurationConverters$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
DurationConverters$() |
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
toJava(scala.concurrent.duration.FiniteDuration duration)
Transform a Scala FiniteDuration into a Java duration.
|
scala.concurrent.duration.FiniteDuration |
toScala(java.time.Duration duration)
Transform a Java duration into a Scala duration.
|
public static final DurationConverters$ MODULE$
public final scala.concurrent.duration.FiniteDuration toScala(java.time.Duration duration)
duration
- (undocumented)java.lang.IllegalArgumentException
- If the given Java Duration is out of bounds of what can be expressed with the
Scala FiniteDuration.public final java.time.Duration toJava(scala.concurrent.duration.FiniteDuration duration)
duration
- (undocumented)