public static class MeasurementMap.Builder extends Object
MeasurementMap class.| Modifier and Type | Method and Description |
|---|---|
MeasurementMap |
build()
Constructs a
MeasurementMap from the current measurements. |
MeasurementMap.Builder |
put(MeasurementDescriptor measurement,
double value)
Associates the
MeasurementDescriptor with the given value. |
public MeasurementMap.Builder put(MeasurementDescriptor measurement, double value)
MeasurementDescriptor with the given value. Subsequent updates to the
same MeasurementDescriptor are ignored.measurement - the MeasurementDescriptorvalue - the value to be associated with measurementpublic MeasurementMap build()
MeasurementMap from the current measurements.