Package-level declarations

Types

Link copied to clipboard

Represents a prefix that a unit could have (grams, kilograms, nanograms, etc).

Link copied to clipboard
class UnitFormat @JvmOverloads constructor(val name: String, val singular: Component, val plural: Component, val abbreviation: Component? = null, val defaultPrefix: MetricPrefix = MetricPrefix.NONE, val defaultStyle: Style = Style.empty(), val usePrefixes: Boolean = true)

Handles formatting of a specific unit. Call format to format a value using this unit.