@Immutable public abstract static class Distribution.BucketOptions.ExplicitOptions extends Distribution.BucketOptions
Distribution.BucketOptions
.Distribution.BucketOptions.ExplicitOptions
Modifier and Type | Method and Description |
---|---|
abstract List<Double> |
getBucketBoundaries()
Returns the bucket boundaries of this distribution.
|
<T> T |
match(Function<? super Distribution.BucketOptions.ExplicitOptions,T> explicitFunction,
Function<? super Distribution.BucketOptions,T> defaultFunction)
Applies the given match function to the underlying BucketOptions.
|
explicitOptions
public final <T> T match(Function<? super Distribution.BucketOptions.ExplicitOptions,T> explicitFunction, Function<? super Distribution.BucketOptions,T> defaultFunction)
Distribution.BucketOptions
match
in class Distribution.BucketOptions
explicitFunction
- the function that should be applied if the BucketOptions has type
ExplicitOptions
.defaultFunction
- the function that should be applied if the BucketOptions has a type
that was added after this match
method was added to the API. See Functions
for some common functions for handling unknown types.