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

Int

Enum Values

AIR_QUALITY_INDEX

val BaseUnit.AIR_QUALITY_INDEXBaseUnit

AMPERE

val BaseUnit.AMPEREBaseUnit

BECQUEREL_PER_CUBIC_METER

val BaseUnit.BECQUEREL_PER_CUBIC_METERBaseUnit

CELSIUS

val BaseUnit.CELSIUSBaseUnit

DEGREES

val BaseUnit.DEGREESBaseUnit

KELVIN

val BaseUnit.KELVINBaseUnit

KG_PER_CUBIC_METER

val BaseUnit.KG_PER_CUBIC_METERBaseUnit

METERS

val BaseUnit.METERSBaseUnit

MIRED

val BaseUnit.MIREDBaseUnit

PARTICLES_PER_CUBIC_METER

val BaseUnit.PARTICLES_PER_CUBIC_METERBaseUnit

PARTS_PER_MILLION

val BaseUnit.PARTS_PER_MILLIONBaseUnit

PERCENT

val BaseUnit.PERCENTBaseUnit

SECONDS

val BaseUnit.SECONDSBaseUnit

WATT

val BaseUnit.WATTBaseUnit

WATT_HOUR

val BaseUnit.WATT_HOURBaseUnit

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

tagId

val tagIdInt