Class WeightedChoice.ItemPair

  • Enclosing class:
    WeightedChoice<T>

    private class WeightedChoice.ItemPair
    extends java.lang.Object
    Manages light object/heavy object/light conditional probability tuples.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T heavy  
      (package private) T light  
      (package private) double weight  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ItemPair​(T light, T heavy, double weight)  
    • Method Summary

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

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

      • light

        T light
      • heavy

        T heavy
      • weight

        double weight
    • Constructor Detail

      • ItemPair

        private ItemPair​(T light,
                         T heavy,
                         double weight)
    • Method Detail

      • toString

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