public static final class VariableAmount.Fixed extends Object implements VariableAmount
getAmount(java.util.Random) will always return
the same fixed value.VariableAmount.BaseAndAddition, VariableAmount.BaseAndVariance, VariableAmount.Fixed, VariableAmount.OptionalAmount| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getAmount(Random random)
Gets an instance of the variable amount depending on the given random
object.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbaseWithOptionalAddition, baseWithOptionalAddition, baseWithOptionalVariance, baseWithOptionalVariance, baseWithRandomAddition, baseWithRandomAddition, baseWithVariance, baseWithVariance, fixed, getAmount, getFlooredAmount, getFlooredAmount, rangepublic double getAmount(@Nonnull Random random)
VariableAmountgetAmount in interface VariableAmountrandom - The random objectCopyright © 2020. All rights reserved.