Class WeightedOutput
java.lang.Object
ke.ric.cooking.data.WeightedOutput
One possible output for a recipe with a relative selection weight.
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedOutput(String output, double weight) WeightedOutput(RecipeItemRef outputRef, int amount, double weight) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintdoubleinthashCode()booleanisValid()voidsetAmount(int amount) voidvoidsetOutputRef(RecipeItemRef outputRef) voidsetWeight(double weight) toString()
-
Constructor Details
-
WeightedOutput
public WeightedOutput() -
WeightedOutput
-
WeightedOutput
-
-
Method Details
-
getOutput
-
setOutput
-
getOutputRef
-
setOutputRef
-
getAmount
public int getAmount() -
setAmount
public void setAmount(int amount) -
getWeight
public double getWeight() -
setWeight
public void setWeight(double weight) -
isValid
public boolean isValid() -
equals
-
hashCode
-
toString
-