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
-
Nested Class Summary
Nested classes/interfaces inherited from class Value
Value.ValueDistribution, Value.ValueDouble, Value.ValueLong, Value.ValueSummary -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Value.ValueDoublecreate(double value) Creates aValue.ValueDouble.(package private) abstract doublegetValue()Returns the double value.final <T> Tmatch(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 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:ValueApplies 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.
-