Record Class DesignDecisionRecord.Cost
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Cost
- Record Components:
currency- the currency every line is in (the spec's commercial currency)monthly- the expected monthly total, ornullwhen the lines span currenciesmonthlyLow- the low end of the monthly range, ornullmonthlyHigh- the high end of the monthly range, ornulloneTime- the one-time total, ornullcomplete- whether every item was priced (an incomplete total understates the cost)lines- the priced linesunpriced- what could not be priced and whyratesUsed- every exchange rate a line was converted atgrowth- the term and growth view, ornull(seegrowthNote)growthNote- why there is no growth view, ornullvalue- the TCO and savings view, ornull(seevalueNote)valueNote- why there is no TCO and savings view, ornull
- Enclosing class:
DesignDecisionRecord
public static record DesignDecisionRecord.Cost(String currency, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, boolean complete, List<DesignDecisionRecord.CostItem> lines, List<String> unpriced, List<DesignDecisionRecord.FxRate> ratesUsed, DesignDecisionRecord.Growth growth, String growthNote, DesignDecisionRecord.Value value, String valueNote)
extends Record
What the recommended design costs, and where each figure came from.
-
Constructor Summary
ConstructorsConstructorDescriptionCost(String currency, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, boolean complete, List<DesignDecisionRecord.CostItem> lines, List<String> unpriced, List<DesignDecisionRecord.FxRate> ratesUsed, DesignDecisionRecord.Growth growth, String growthNote, DesignDecisionRecord.Value value, String valueNote) Copies the collections. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.growth()Returns the value of thegrowthrecord component.Returns the value of thegrowthNoterecord component.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.monthly()Returns the value of themonthlyrecord component.Returns the value of themonthlyHighrecord component.Returns the value of themonthlyLowrecord component.oneTime()Returns the value of theoneTimerecord component.Returns the value of theratesUsedrecord component.final StringtoString()Returns a string representation of this record class.unpriced()Returns the value of theunpricedrecord component.value()Returns the value of thevaluerecord component.Returns the value of thevalueNoterecord component.
-
Constructor Details
-
Cost
public Cost(String currency, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, boolean complete, List<DesignDecisionRecord.CostItem> lines, List<String> unpriced, List<DesignDecisionRecord.FxRate> ratesUsed, DesignDecisionRecord.Growth growth, String growthNote, DesignDecisionRecord.Value value, String valueNote) 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. -
currency
-
monthly
-
monthlyLow
Returns the value of themonthlyLowrecord component.- Returns:
- the value of the
monthlyLowrecord component
-
monthlyHigh
Returns the value of themonthlyHighrecord component.- Returns:
- the value of the
monthlyHighrecord component
-
oneTime
-
complete
-
lines
-
unpriced
-
ratesUsed
-
growth
-
growthNote
Returns the value of thegrowthNoterecord component.- Returns:
- the value of the
growthNoterecord component
-
value
-
valueNote
-