Class Distribution.BucketOptions.ExplicitOptions
java.lang.Object
io.opencensus.metrics.export.Distribution.BucketOptions
io.opencensus.metrics.export.Distribution.BucketOptions.ExplicitOptions
- Enclosing class:
Distribution.BucketOptions
@Immutable
public abstract static class Distribution.BucketOptions.ExplicitOptions
extends Distribution.BucketOptions
A Bucket with explicit bounds
Distribution.BucketOptions.- Since:
- 0.17
-
Nested Class Summary
Nested classes/interfaces inherited from class Distribution.BucketOptions
Distribution.BucketOptions.ExplicitOptions -
Method Summary
Modifier and TypeMethodDescriptionReturns the bucket boundaries of this distribution.final <T> Tmatch(Function<? super Distribution.BucketOptions.ExplicitOptions, T> explicitFunction, Function<? super Distribution.BucketOptions, T> defaultFunction) Applies the given match function to the underlying BucketOptions.Methods inherited from class Distribution.BucketOptions
explicitOptions
-
Method Details
-
match
public final <T> T match(Function<? super Distribution.BucketOptions.ExplicitOptions, T> explicitFunction, Function<? super Distribution.BucketOptions, T> defaultFunction) Description copied from class:Distribution.BucketOptionsApplies the given match function to the underlying BucketOptions.- Specified by:
matchin classDistribution.BucketOptions- Parameters:
explicitFunction- the function that should be applied if the BucketOptions has typeExplicitOptions.defaultFunction- the function that should be applied if the BucketOptions has a type that was added after thismatchmethod was added to the API. SeeFunctionsfor some common functions for handling unknown types.- Returns:
- the result of the function applied to the underlying BucketOptions.
-
getBucketBoundaries
-