com.nohrd.bike.Power.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 Power private constructor(val watts: Double) {
public companion object {
@JvmStatic
public fun fromWatts(value: Number): Power {
return Power(value.toDouble())
}
}
}