Class ImmutableBucket

java.lang.Object
org.terracotta.statistics.derived.histogram.ImmutableBucket
All Implemented Interfaces:
Histogram.Bucket

class ImmutableBucket extends Object implements Histogram.Bucket
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
     
    private final double
     
    private final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImmutableBucket(double minimum, double maximum, double count)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the count of events in this bucket.
    double
    Returns the bucket maximum (exclusive).
    double
    Returns the bucket minimum (inclusive).
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • minimum

      private final double minimum
    • maximum

      private final double maximum
    • count

      private final double count
  • Constructor Details

    • ImmutableBucket

      ImmutableBucket(double minimum, double maximum, double count)
  • Method Details

    • minimum

      public double minimum()
      Description copied from interface: Histogram.Bucket
      Returns the bucket minimum (inclusive).
      Specified by:
      minimum in interface Histogram.Bucket
      Returns:
      the bucket minimum
    • maximum

      public double maximum()
      Description copied from interface: Histogram.Bucket
      Returns the bucket maximum (exclusive).
      Specified by:
      maximum in interface Histogram.Bucket
      Returns:
      the bucket maximum
    • count

      public double count()
      Description copied from interface: Histogram.Bucket
      Returns the count of events in this bucket.
      Specified by:
      count in interface Histogram.Bucket
      Returns:
      the bucket event count
    • toString

      public String toString()
      Overrides:
      toString in class Object