Class VariableAmount.OptionalAmount

    • Method Detail

      • amount

        public double amount​(java.util.Random rand)
        Description copied from interface: VariableAmount
        Gets an instance of the variable amount depending on the given random object.
        Specified by:
        amount in interface VariableAmount
        Parameters:
        rand - The random object
        Returns:
        The amount
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object