Class SeededVariableAmount.WrappedVariableAmount<T>

    • Constructor Detail

      • WrappedVariableAmount

        public WrappedVariableAmount​(VariableAmount inner)
        Creates a new WrappedVariableAmount wrapping the given VariableAmount.
        Parameters:
        inner - The inner variable amount
    • Method Detail

      • amount

        public double amount​(Random rand,
                             T seed)
        Description copied from interface: SeededVariableAmount
        Gets an instance of the variable amount depending on the given random object and the seed object.
        Specified by:
        amount in interface SeededVariableAmount<T>
        Parameters:
        rand - The random object
        seed - The seed object
        Returns:
        The amount
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object