Class MeasurementInfo
-
- All Implemented Interfaces:
public class MeasurementInfo extends ScaleAndPrecision
Measurement info object contains all the measurement information available in a measurement annotation.
-
-
Field Summary
Fields Modifier and Type Field Description public final Scale
scale
public final MeasurementPrecision
precision
public final MeasurementMode
measurementMode
public final float
value
public final String
label
-
Constructor Summary
Constructors Constructor Description MeasurementInfo(Scale scale, MeasurementPrecision precision, MeasurementMode mode, float value, String label)
Creates an instance of a `MeasurementInfo` object.
-
Method Summary
Modifier and Type Method Description Scale
getScale()
MeasurementPrecision
getPrecision()
boolean
equals(Object other)
int
hashCode()
-
-
Constructor Detail
-
MeasurementInfo
MeasurementInfo(Scale scale, MeasurementPrecision precision, MeasurementMode mode, float value, String label)
Creates an instance of a `MeasurementInfo` object.- Parameters:
scale
- : Measurement Scale.precision
- : Floating point MeasurementPrecision for this measurement.mode
- : Measurement type.value
- : Measurement value un-rounded.label
- : String represented the rounded measurement `value` and unit.
-
-
Method Detail
-
getPrecision
MeasurementPrecision getPrecision()
-
hashCode
int hashCode()
-
-
-
-