Objects.requireNonNull(growthRate);
this.discountRate = discountRate;
this.growthRate = growthRate;
}
@Override
<BUG>public <T extends MonetaryAmount> T apply(T amount) {
return (T) PresentValueGrowingAnnuity.of().calculate(amount,
discountRate, growthRate);</BUG>
}
@Override

Objects.requireNonNull(growthRate);
this.discountRate = discountRate;
this.growthRate = growthRate;
}
@Override
public MonetaryAmount apply(MonetaryAmount amount) {
return PresentValueGrowingAnnuity.of().calculate(amount,
discountRate, growthRate);
}
@Override
