Class Buckets

  • All Implemented Interfaces:

    
    public final class Buckets
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Buckets.Snapshot
    • Constructor Summary

      Constructors 
      Constructor Description
      Buckets(List<Long> thresholds)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Buckets.Snapshot getSnapshot()
      final Boolean addValue(Number value) Add a value.
      • Methods inherited from class java.lang.Object

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

      • Buckets

        Buckets(List<Long> thresholds)
    • Method Detail

      • addValue

         final Boolean addValue(Number value)

        Add a value. If the value is outside of range defined by the thresholds it is ignored and the function returns false.

        Returns:

        true iff the value was successfully added.