Class Distribution.BucketOptions.ExplicitOptions

    • Constructor Detail

      • ExplicitOptions

        ExplicitOptions()
    • Method Detail

      • match

        public final <T> T match​(Function<? super Distribution.BucketOptions.ExplicitOptions,​T> explicitFunction,
                                 Function<? super Distribution.BucketOptions,​T> defaultFunction)
        Description copied from class: Distribution.BucketOptions
        Applies the given match function to the underlying BucketOptions.
        Specified by:
        match in class Distribution.BucketOptions
        Parameters:
        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.
        Returns:
        the result of the function applied to the underlying BucketOptions.
      • checkBucketBoundsAreSorted

        private static void checkBucketBoundsAreSorted​(java.util.List<java.lang.Double> bucketBoundaries)
      • getBucketBoundaries

        public abstract java.util.List<java.lang.Double> getBucketBoundaries()
        Returns the bucket boundaries of this distribution.
        Returns:
        the bucket boundaries of this distribution.
        Since:
        0.17