Unit

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
abstract class Unit : UnitBase

Weight units.

Inheritors

Types

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Grams : Weight.Unit

Weight expressed in grams.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Kilograms : Weight.Unit

Weight expressed in kilograms.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object LongTons : Weight.Unit

Weight expressed in long tons. (Commonly used in the UK.)

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object MetricTons : Weight.Unit

Weight expressed in metric tons. (Commonly used in Europe.)

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Ounces : Weight.Unit

Weight expressed in ounces.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object Pounds : Weight.Unit

Weight expressed in pounds.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object ShortTons : Weight.Unit

Weight expressed in short tons. (Commonly used in the US.)

Properties

Link copied to clipboard
open override val factor: Long

The conversion factor from the internal representation of the quantity to the unit.

Link copied to clipboard
open override val name: String

The name of the unit.