Class DistributionSampler.Bucket

  • Enclosing class:
    DistributionSampler

    public static class DistributionSampler.Bucket
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.LongAdder count  
      protected long max  
      protected long min  
    • Constructor Summary

      Constructors 
      Constructor Description
      Bucket​(long min, long max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()  
      void increment()  
      void reset()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • min

        protected long min
      • max

        protected long max
      • count

        protected final java.util.concurrent.atomic.LongAdder count
    • Constructor Detail

      • Bucket

        public Bucket​(long min,
                      long max)
    • Method Detail

      • count

        public long count()
      • increment

        public void increment()
      • reset

        public void reset()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object