Package io.opencensus.implcore.stats
Class MeasureMapInternal.Builder
java.lang.Object
io.opencensus.implcore.stats.MeasureMapInternal.Builder
- Enclosing class:
MeasureMapInternal
Builder for the
MeasureMapInternal
class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<String, AttachmentValue> private final ArrayList
<Measurement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) MeasureMapInternal
build()
Constructs aMeasureMapInternal
from the current measurements.(package private) MeasureMapInternal.Builder
put
(Measure.MeasureDouble measure, double value) Associates theMeasure.MeasureDouble
with the given value.(package private) MeasureMapInternal.Builder
put
(Measure.MeasureLong measure, long value) Associates theMeasure.MeasureLong
with the given value.(package private) MeasureMapInternal.Builder
putAttachment
(String key, AttachmentValue value)
-
Field Details
-
measurements
-
attachments
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
put
Associates theMeasure.MeasureDouble
with the given value. Subsequent updates to the sameMeasure.MeasureDouble
will overwrite the previous value.- Parameters:
measure
- theMeasure.MeasureDouble
value
- the value to be associated withmeasure
- Returns:
- this
-
put
Associates theMeasure.MeasureLong
with the given value. Subsequent updates to the sameMeasure.MeasureLong
will overwrite the previous value.- Parameters:
measure
- theMeasure.MeasureLong
value
- the value to be associated withmeasure
- Returns:
- this
-
putAttachment
-
build
MeasureMapInternal build()Constructs aMeasureMapInternal
from the current measurements.
-