Class Distribution.Bucket

  • Direct Known Subclasses:
    AutoValue_Distribution_Bucket
    Enclosing class:
    Distribution

    @Immutable
    public abstract static class Distribution.Bucket
    extends java.lang.Object
    The histogram bucket of the population values.
    Since:
    0.17
    • Constructor Detail

      • Bucket

        Bucket()
    • Method Detail

      • create

        public static Distribution.Bucket create​(long count)
        Parameters:
        count - the number of values in each bucket of the histogram.
        Returns:
        a Bucket.
        Since:
        0.17
      • create

        public static Distribution.Bucket create​(long count,
                                                 Exemplar exemplar)
        Creates a Distribution.Bucket with an Exemplar.
        Parameters:
        count - the number of values in each bucket of the histogram.
        exemplar - the Exemplar of this Bucket.
        Returns:
        a Bucket.
        Since:
        0.17
      • getCount

        public abstract long getCount()
        Returns the number of values in each bucket of the histogram.
        Returns:
        the number of values in each bucket of the histogram.
        Since:
        0.17
      • getExemplar

        @Nullable
        public abstract Exemplar getExemplar()
        Returns the Exemplar associated with the Distribution.Bucket, or null if there isn't one.
        Returns:
        the Exemplar associated with the Bucket, or null if there isn't one.
        Since:
        0.17