DurationConverters

scala.jdk.DurationConverters

This object provides extension methods that convert between Scala and Java duration types.

When writing Java code, use the explicit conversion methods defined in javaapi.DurationConverters instead.

Attributes

Source
DurationConverters.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final implicit class JavaDurationOps(duration: Duration) extends AnyVal

Attributes

Source
DurationConverters.scala
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class ScalaDurationOps(duration: FiniteDuration) extends AnyVal

Attributes

Source
DurationConverters.scala
Supertypes
class AnyVal
trait Matchable
class Any

Implicits

Implicits

implicit def JavaDurationOps(duration: Duration): JavaDurationOps

Attributes

Source
DurationConverters.scala
final implicit def ScalaDurationOps(duration: FiniteDuration): ScalaDurationOps

Attributes

Source
DurationConverters.scala