Class WeightedValue


  • public final class WeightedValue
    extends Object
    A value (which can be null) and its associated weight (support).
    • Constructor Detail

      • WeightedValue

        public WeightedValue()
    • Method Detail

      • getValue

        public Double getValue()
        Gets the value, which can be null.
      • setValue

        public void setValue​(Double value)
        Sets the value, which can be null.
      • getWeight

        public double getWeight()
        Gets the weight (support) for the getValue().
      • setWeight

        public void setWeight​(double value)
        Sets the weight (support) for the getValue().
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object