ConstraintUnit

class ConstraintUnit


Class representing a unit of measurement. It consists of a base unit and a scale, which is the multiplier on the value used to derive a value in the desired base unit. For example, if a field has the unit centi-celsius, the base unit would be Celsius and the multiplier would be 0.01.

Summary

Public constructors

ConstraintUnit(baseUnit: BaseUnit, scale: Number)

Create a ConstraintUnit instance.

Public properties

BaseUnit

The base unit.

Number

The multiplier used to derive a value expressed using baseUnit.

Public constructors

ConstraintUnit

ConstraintUnit(baseUnit: BaseUnit, scale: Number)

Create a ConstraintUnit instance.

Public properties

baseUnit

val baseUnitBaseUnit

The base unit.

scale

val scaleNumber

The multiplier used to derive a value expressed using baseUnit.