Class WeightedSnapshot.WeightedSample

  • Enclosing class:
    WeightedSnapshot

    public static class WeightedSnapshot.WeightedSample
    extends java.lang.Object
    A single sample item with value and its weights for WeightedSnapshot.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long value  
      double weight  
    • Constructor Summary

      Constructors 
      Constructor Description
      WeightedSample​(long value, double weight)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • value

        public final long value
      • weight

        public final double weight
    • Constructor Detail

      • WeightedSample

        public WeightedSample​(long value,
                              double weight)