BaseUnit

enum BaseUnit : Enum


Represents the base unit of a measurement.

Summary

Public functions

BaseUnit
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<BaseUnit>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

EnumEntries<BaseUnit>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Int

Enum Values

AIR_QUALITY_INDEX

val BaseUnit.AIR_QUALITY_INDEX: BaseUnit

AMPERE

val BaseUnit.AMPERE: BaseUnit

AMPERE_HOUR

val BaseUnit.AMPERE_HOUR: BaseUnit

BECQUEREL_PER_CUBIC_METER

val BaseUnit.BECQUEREL_PER_CUBIC_METER: BaseUnit

CELSIUS

val BaseUnit.CELSIUS: BaseUnit

CUBIC_METERS_PER_HOUR

val BaseUnit.CUBIC_METERS_PER_HOUR: BaseUnit

DEGREES

val BaseUnit.DEGREES: BaseUnit

HERTZ

val BaseUnit.HERTZ: BaseUnit

HOUR

val BaseUnit.HOUR: BaseUnit

KELVIN

val BaseUnit.KELVIN: BaseUnit

KG_PER_CUBIC_METER

val BaseUnit.KG_PER_CUBIC_METER: BaseUnit

KILOMETERS

val BaseUnit.KILOMETERS: BaseUnit

KILOMETERS_PER_HOUR

val BaseUnit.KILOMETERS_PER_HOUR: BaseUnit

KM_PER_KWH

val BaseUnit.KM_PER_KWH: BaseUnit

LUX_LOG10

val BaseUnit.LUX_LOG10: BaseUnit

MATTER_EPOCH_SECOND

val BaseUnit.MATTER_EPOCH_SECOND: BaseUnit

METERS

val BaseUnit.METERS: BaseUnit

MINUTE

val BaseUnit.MINUTE: BaseUnit

MIRED

val BaseUnit.MIRED: BaseUnit

PARTICLES_PER_CUBIC_METER

val BaseUnit.PARTICLES_PER_CUBIC_METER: BaseUnit

PARTS_PER_MILLION

val BaseUnit.PARTS_PER_MILLION: BaseUnit

PASCALS

val BaseUnit.PASCALS: BaseUnit

PERCENT

val BaseUnit.PERCENT: BaseUnit

ROTATIONS_PER_MINUTE

val BaseUnit.ROTATIONS_PER_MINUTE: BaseUnit

SECONDS

val BaseUnit.SECONDS: BaseUnit

VOLT

val BaseUnit.VOLT: BaseUnit

WATT

val BaseUnit.WATT: BaseUnit

WATT_HOUR

val BaseUnit.WATT_HOUR: BaseUnit

Public functions

valueOf

fun valueOf(value: String): BaseUnit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<BaseUnit>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Public properties

entries

val entries: EnumEntries<BaseUnit>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

tagId

val tagId: Int