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
-
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.ValueLongcreate(long value) Creates aValue.ValueLong.(package private) abstract longgetValue()Returns the long 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
-
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:ValueApplies 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.
-