public class DurationConverters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DurationConverters.DurationOps |
static class |
DurationConverters.DurationOps$ |
static class |
DurationConverters.FiniteDurationops |
static class |
DurationConverters.FiniteDurationops$ |
Constructor and Description |
---|
DurationConverters() |
Modifier and Type | Method and Description |
---|---|
static java.time.Duration |
toJava(scala.concurrent.duration.FiniteDuration duration)
Transform a Scala FiniteDuration into a Java duration.
|
static scala.concurrent.duration.FiniteDuration |
toScala(java.time.Duration duration)
Transform a Java duration into a Scala duration.
|
public static 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 static final java.time.Duration toJava(scala.concurrent.duration.FiniteDuration duration)
duration
- (undocumented)