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​(java.util.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
      • 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