com.nohrd.bike.Speed.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domain Show documentation
Show all versions of domain Show documentation
A library for reading data from a NOHrD Bike
The newest version!
package com.nohrd.bike
@Suppress("DataClassPrivateConstructor")
public data class Speed private constructor(val metersPerSecond: Double) {
public companion object {
@JvmStatic
public fun fromMetersPerSecond(value: Number): Speed {
return Speed(value.toDouble())
}
}
}