All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fm.common.rich.RichJavaDuration.scala Maven / Gradle / Ivy

package fm.common.rich

import java.time.Duration
import java.util.concurrent.TimeUnit
import scala.concurrent.duration.FiniteDuration

final class RichJavaDuration(val self: Duration) extends AnyVal {
  def asScala: FiniteDuration = FiniteDuration(self.toNanos, TimeUnit.NANOSECONDS)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy