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) MeasureMapInternalbuild()Constructs aMeasureMapInternalfrom the current measurements.(package private) MeasureMapInternal.Builderput(Measure.MeasureDouble measure, double value) Associates theMeasure.MeasureDoublewith the given value.(package private) MeasureMapInternal.Builderput(Measure.MeasureLong measure, long value) Associates theMeasure.MeasureLongwith the given value.(package private) MeasureMapInternal.BuilderputAttachment(String key, AttachmentValue value)
-
Field Details
-
measurements
-
attachments
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
put
Associates theMeasure.MeasureDoublewith the given value. Subsequent updates to the sameMeasure.MeasureDoublewill overwrite the previous value.- Parameters:
measure- theMeasure.MeasureDoublevalue- the value to be associated withmeasure- Returns:
- this
-
put
Associates theMeasure.MeasureLongwith the given value. Subsequent updates to the sameMeasure.MeasureLongwill overwrite the previous value.- Parameters:
measure- theMeasure.MeasureLongvalue- the value to be associated withmeasure- Returns:
- this
-
putAttachment
-
build
MeasureMapInternal build()Constructs aMeasureMapInternalfrom the current measurements.
-