Package com.bayesserver.data.discovery
Class WeightedValue
- java.lang.Object
-
- com.bayesserver.data.discovery.WeightedValue
-
public final class WeightedValue extends Object
A value (which can be null) and its associated weight (support).
-
-
Constructor Summary
Constructors Constructor Description WeightedValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DoublegetValue()Gets the value, which can be null.doublegetWeight()Gets the weight (support) for thegetValue().inthashCode()voidsetValue(Double value)Sets the value, which can be null.voidsetWeight(double value)Sets the weight (support) for thegetValue().
-
-
-
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 thegetValue().
-
setWeight
public void setWeight(double value)
Sets the weight (support) for thegetValue().
-
-