Class BucketBoundaries

  • Direct Known Subclasses:
    AutoValue_BucketBoundaries

    @Immutable
    public abstract class BucketBoundaries
    extends java.lang.Object
    The bucket boundaries for a histogram.
    Since:
    0.8
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger logger  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static BucketBoundaries create​(java.util.List<java.lang.Double> bucketBoundaries)
      Returns a BucketBoundaries with the given buckets.
      private static java.util.List<java.lang.Double> dropNegativeBucketBounds​(java.util.List<java.lang.Double> bucketBoundaries)  
      abstract java.util.List<java.lang.Double> getBoundaries()
      Returns a list of histogram bucket boundaries.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • BucketBoundaries

        public BucketBoundaries()
    • Method Detail

      • create

        public static final BucketBoundaries create​(java.util.List<java.lang.Double> bucketBoundaries)
        Returns a BucketBoundaries with the given buckets.
        Parameters:
        bucketBoundaries - the boundaries for the buckets in the underlying histogram.
        Returns:
        a new BucketBoundaries with the specified boundaries.
        Throws:
        java.lang.NullPointerException - if bucketBoundaries is null.
        java.lang.IllegalArgumentException - if bucketBoundaries is not sorted.
        Since:
        0.8
      • dropNegativeBucketBounds

        private static java.util.List<java.lang.Double> dropNegativeBucketBounds​(java.util.List<java.lang.Double> bucketBoundaries)
      • getBoundaries

        public abstract java.util.List<java.lang.Double> getBoundaries()
        Returns a list of histogram bucket boundaries.
        Returns:
        a list of histogram bucket boundaries.
        Since:
        0.8