Package io.opencensus.metrics.export
Class Value.ValueDouble
java.lang.Object
io.opencensus.metrics.export.Value
io.opencensus.metrics.export.Value.ValueDouble
- Direct Known Subclasses:
AutoValue_Value_ValueDouble
- Enclosing class:
Value
A 64-bit double-precision floating-point
Value
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.metrics.export.Value
Value.ValueDistribution, Value.ValueDouble, Value.ValueLong, Value.ValueSummary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Value.ValueDouble
create
(double value) Creates aValue.ValueDouble
.(package private) abstract double
getValue()
Returns the double value.final <T> T
match
(Function<? super Double, T> doubleFunction, Function<? super Long, T> longFunction, Function<? super Distribution, T> distributionFunction, Function<? super Summary, T> summaryFunction, Function<? super Value, T> defaultFunction) Applies the given match function to the underlying data type.Methods inherited from class io.opencensus.metrics.export.Value
distributionValue, doubleValue, longValue, summaryValue
-
Constructor Details
-
ValueDouble
ValueDouble()
-
-
Method Details
-
match
public final <T> T match(Function<? super Double, T> doubleFunction, Function<? super Long, T> longFunction, Function<? super Distribution, T> distributionFunction, Function<? super Summary, T> summaryFunction, Function<? super Value, T> defaultFunction) Description copied from class:Value
Applies the given match function to the underlying data type. -
create
Creates aValue.ValueDouble
.- Parameters:
value
- the value in double.- Returns:
- a
ValueDouble
.
-
getValue
abstract double getValue()Returns the double value.- Returns:
- the double value.
-