-
public final class MeasurementSnapshotThe canonical persist + delegate-payload derivation. Given an (unrounded) base and the current display unit, produces:
the
inputValuespatch:{ fieldId: snapped+clamped BASE, _unit: base id, _display_unit: display id, _display_value: snapped display }the
onElementInteractionpayload:{ value: base, display_value, unit: display id }The persisted scalar is UNIT-STABLE — flipping the toggle holds the base constant so the scalar does not change; only the display keys / payload change.
-
-
Method Summary
Modifier and Type Method Description final Map<String, Object>getInputValues()final Map<String, Object>getPayload()final DoublegetSnappedBase()final DoublegetDisplay()-
-
Method Detail
-
getInputValues
final Map<String, Object> getInputValues()
-
getPayload
final Map<String, Object> getPayload()
-
getSnappedBase
final Double getSnappedBase()
-
getDisplay
final Double getDisplay()
-
-
-
-