Record Class DesignDecisionRecord.CostItem
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.CostItem
- Record Components:
label- what is paid formetro- the metro code, ornullfor a design-wide itemmonthly- the expected monthly amountmonthlyLow- the low end of the plausible rangemonthlyHigh- the high end of the plausible rangeoneTime- the one-time amountcurrency- the currency of the amountssource-live,reference,estimate,contract,provider APIorcompositenote- provenance detailoriginalMonthly- the amount before conversion, ornullwhen not convertedoriginalCurrency- the currency before conversion, ornullrate- the exchange rate applied, ornull
- Enclosing class:
DesignDecisionRecord
public static record DesignDecisionRecord.CostItem(String label, String metro, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, String currency, String source, String note, BigDecimal originalMonthly, String originalCurrency, BigDecimal rate)
extends Record
One priced line.
-
Constructor Summary
ConstructorsConstructorDescriptionCostItem(String label, String metro, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, String currency, String source, String note, BigDecimal originalMonthly, String originalCurrency, BigDecimal rate) Creates an instance of aCostItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncurrency()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.label()Returns the value of thelabelrecord component.metro()Returns the value of themetrorecord component.monthly()Returns the value of themonthlyrecord component.Returns the value of themonthlyHighrecord component.Returns the value of themonthlyLowrecord component.note()Returns the value of thenoterecord component.oneTime()Returns the value of theoneTimerecord component.Returns the value of theoriginalCurrencyrecord component.Returns the value of theoriginalMonthlyrecord component.rate()Returns the value of theraterecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CostItem
public CostItem(String label, String metro, BigDecimal monthly, BigDecimal monthlyLow, BigDecimal monthlyHigh, BigDecimal oneTime, String currency, String source, String note, BigDecimal originalMonthly, String originalCurrency, BigDecimal rate) Creates an instance of aCostItemrecord class.- Parameters:
label- the value for thelabelrecord componentmetro- the value for themetrorecord componentmonthly- the value for themonthlyrecord componentmonthlyLow- the value for themonthlyLowrecord componentmonthlyHigh- the value for themonthlyHighrecord componentoneTime- the value for theoneTimerecord componentcurrency- the value for thecurrencyrecord componentsource- the value for thesourcerecord componentnote- the value for thenoterecord componentoriginalMonthly- the value for theoriginalMonthlyrecord componentoriginalCurrency- the value for theoriginalCurrencyrecord componentrate- the value for theraterecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
metro
-
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
-
currency
-
source
-
note
-
originalMonthly
Returns the value of theoriginalMonthlyrecord component.- Returns:
- the value of the
originalMonthlyrecord component
-
originalCurrency
Returns the value of theoriginalCurrencyrecord component.- Returns:
- the value of the
originalCurrencyrecord component
-
rate
-