MeasurementValueConfiguration

Configures a measurement value and consists of a Scale, MeasurementPrecision, and a name for this configuration. These properties describe how the actual measurement value is calculated and formatted for the measurement annotations. The name property is just to have the option to display a user-friendly name in the UI, it has no further use. If we ever check for duplicates, or try to find a specific MeasurementValueConfiguration in the document's configuration list, only `scale` and `precision` matter. That being said, the combination of `scale` and `precision` needs to be unique - you cannot have two MeasurementValueConfigurations in the document with same scale and precision. The name can be null, in that case the UI shows generated name.

See also

Constructors

Link copied to clipboard
constructor(@Nullable name: String, @NonNull scale: Scale, @NonNull precision: MeasurementPrecision)
Constructor.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equalsAll(@Nullable other: Any): Boolean
Also compares name as well as scale/precision.
Link copied to clipboard
Link copied to clipboard
open fun getDefaultName(includePrecision: Boolean): String
Link copied to clipboard
open fun getNameForDisplay(includePrecision: Boolean): String
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard