Companion

object Companion

Properties

Link copied to clipboard

The Weight of 0.

Functions

Link copied to clipboard
fun grams(value: Double): Weight
fun grams(value: Int): Weight
fun grams(value: Long): Weight

Creates a Weight instance from the given value in grams.

Link copied to clipboard
fun kilograms(value: Double): Weight
fun kilograms(value: Int): Weight
fun kilograms(value: Long): Weight

Creates a Weight instance from the given value in kilograms.

Link copied to clipboard
fun longTons(value: Double): Weight
fun longTons(value: Int): Weight
fun longTons(value: Long): Weight

Creates a Weight instance from the given value in long tons.

Link copied to clipboard
fun metricTons(value: Double): Weight
fun metricTons(value: Int): Weight
fun metricTons(value: Long): Weight

Creates a Weight instance from the given value in metric tons.

Link copied to clipboard
fun ounces(value: Double): Weight
fun ounces(value: Int): Weight
fun ounces(value: Long): Weight

Creates a Weight instance from the given value in ounces.

Link copied to clipboard
fun pounds(value: Double): Weight
fun pounds(value: Int): Weight
fun pounds(value: Long): Weight

Creates a Weight instance from the given value in pounds.

Link copied to clipboard
fun shortTons(value: Double): Weight
fun shortTons(value: Int): Weight
fun shortTons(value: Long): Weight

Creates a Weight instance from the given value in short tons.