Record Class DesignDecisionRecord.Growth
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Growth
- Record Components:
annualGrowth- the growth rate used (fraction)horizonMonths- the horizoncurrency- the currency of the amountsonDemandTotal- the on-demand total over the horizon, ornullwhen a month is unpriceditems- one line per itemunpriced- what could not be pricedassumptions- the modelling assumptions
- Enclosing class:
DesignDecisionRecord
public static record DesignDecisionRecord.Growth(double annualGrowth, int horizonMonths, String currency, BigDecimal onDemandTotal, List<DesignDecisionRecord.GrowthItem> items, List<String> unpriced, List<String> assumptions)
extends Record
The design priced month by month under the spec's growth, with a term recommendation per item.
-
Constructor Summary
ConstructorsConstructorDescriptionGrowth(double annualGrowth, int horizonMonths, String currency, BigDecimal onDemandTotal, List<DesignDecisionRecord.GrowthItem> items, List<String> unpriced, List<String> assumptions) Copies the collections. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theannualGrowthrecord component.Returns the value of theassumptionsrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thehorizonMonthsrecord component.items()Returns the value of theitemsrecord component.Returns the value of theonDemandTotalrecord component.final StringtoString()Returns a string representation of this record class.unpriced()Returns the value of theunpricedrecord component.
-
Constructor Details
-
Growth
public Growth(double annualGrowth, int horizonMonths, String currency, BigDecimal onDemandTotal, List<DesignDecisionRecord.GrowthItem> items, List<String> unpriced, List<String> assumptions) Copies the collections.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
annualGrowth
public double annualGrowth()Returns the value of theannualGrowthrecord component.- Returns:
- the value of the
annualGrowthrecord component
-
horizonMonths
public int horizonMonths()Returns the value of thehorizonMonthsrecord component.- Returns:
- the value of the
horizonMonthsrecord component
-
currency
-
onDemandTotal
Returns the value of theonDemandTotalrecord component.- Returns:
- the value of the
onDemandTotalrecord component
-
items
-
unpriced
-
assumptions
Returns the value of theassumptionsrecord component.- Returns:
- the value of the
assumptionsrecord component
-