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
@Immutable abstract static class Value.ValueDouble extends Value
A 64-bit double-precision floating-pointValue
.
-
-
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 Constructor Description ValueDouble()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static Value.ValueDouble
create(double value)
Creates aValue.ValueDouble
.(package private) abstract double
getValue()
Returns the double value.<T> T
match(Function<? super java.lang.Double,T> doubleFunction, Function<? super java.lang.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
-
-
-
-
Method Detail
-
match
public final <T> T match(Function<? super java.lang.Double,T> doubleFunction, Function<? super java.lang.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
static Value.ValueDouble create(double value)
Creates aValue.ValueDouble
.- Parameters:
value
- the value in double.- Returns:
- a
ValueDouble
.
-
getValue
abstract double getValue()
Returns the double value.- Returns:
- the double value.
-
-