Package io.opencensus.metrics.export
Class Value.ValueLong
java.lang.Object
io.opencensus.metrics.export.Value
io.opencensus.metrics.export.Value.ValueLong
- Direct Known Subclasses:
AutoValue_Value_ValueLong
- Enclosing class:
Value
A 64-bit integer
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.ValueLong
create
(long value) Creates aValue.ValueLong
.(package private) abstract long
getValue()
Returns the long 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
-
ValueLong
ValueLong()
-
-
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.ValueLong
.- Parameters:
value
- the value in long.- Returns:
- a
ValueLong
.
-
getValue
abstract long getValue()Returns the long value.- Returns:
- the long value.
-