Class WeightedOutput

java.lang.Object
ke.ric.cooking.data.WeightedOutput

public class WeightedOutput extends Object
One possible output for a recipe with a relative selection weight.
  • Constructor Details

    • WeightedOutput

      public WeightedOutput()
    • WeightedOutput

      public WeightedOutput(String output, double weight)
    • WeightedOutput

      public WeightedOutput(RecipeItemRef outputRef, int amount, double weight)
  • Method Details

    • getOutput

      public String getOutput()
    • setOutput

      public void setOutput(String output)
    • getOutputRef

      public RecipeItemRef getOutputRef()
    • setOutputRef

      public void setOutputRef(RecipeItemRef outputRef)
    • 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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object