Companion

object Companion

Properties

Link copied to clipboard

A Weight equal to this Double number of grams.

A Weight equal to this Int number of grams.

A Weight equal to this Long number of grams.

Link copied to clipboard

A Weight equal to this Double number of kilograms.

A Weight equal to this Int number of kilograms.

A Weight equal to this Long number of kilograms.

Link copied to clipboard

A Weight equal to this Double number of long tons.

A Weight equal to this Int number of long tons.

A Weight equal to this Long number of long tons.

Link copied to clipboard

A Weight equal to this Double number of metric tons.

A Weight equal to this Int number of metric tons.

A Weight equal to this Long number of metric tons.

Link copied to clipboard

A Weight equal to this Double number of ounces.

A Weight equal to this Int number of ounces.

A Weight equal to this Long number of ounces.

Link copied to clipboard

A Weight equal to this Double number of pounds.

A Weight equal to this Int number of pounds.

A Weight equal to this Long number of pounds.

Link copied to clipboard

A Weight equal to this Double number of short tons.

A Weight equal to this Int number of short tons.

A Weight equal to this Long number of short tons.

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.