Record Class CostLine.Conversion
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.CostLine.Conversion
- Record Components:
originalMonthly- the monthly amount as pricedoriginalOneTime- the one-time amount as pricedoriginalCurrency- the currency it was priced inrate- units of the line'scurrencyper one unit oforiginalCurrencykind- where the rate came from:CurrencyConverter.Kindsource- the rate's source, as stated by the converterasOf- the rate's datebandPercent- the widening applied to the line's range for exchange-rate uncertainty, either side
- Enclosing class:
CostLine
public static record CostLine.Conversion(BigDecimal originalMonthly, BigDecimal originalOneTime, String originalCurrency, BigDecimal rate, CurrencyConverter.Kind kind, String source, String asOf, double bandPercent)
extends Record
How a line was restated in the comparison currency.
-
Constructor Summary
ConstructorsConstructorDescriptionConversion(BigDecimal originalMonthly, BigDecimal originalOneTime, String originalCurrency, BigDecimal rate, CurrencyConverter.Kind kind, String source, String asOf, double bandPercent) Creates an instance of aConversionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasOf()Returns the value of theasOfrecord component.doubleReturns the value of thebandPercentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theoriginalCurrencyrecord component.Returns the value of theoriginalMonthlyrecord component.Returns the value of theoriginalOneTimerecord 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
-
Conversion
public Conversion(BigDecimal originalMonthly, BigDecimal originalOneTime, String originalCurrency, BigDecimal rate, CurrencyConverter.Kind kind, String source, String asOf, double bandPercent) Creates an instance of aConversionrecord class.- Parameters:
originalMonthly- the value for theoriginalMonthlyrecord componentoriginalOneTime- the value for theoriginalOneTimerecord componentoriginalCurrency- the value for theoriginalCurrencyrecord componentrate- the value for theraterecord componentkind- the value for thekindrecord componentsource- the value for thesourcerecord componentasOf- the value for theasOfrecord componentbandPercent- the value for thebandPercentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
originalMonthly
Returns the value of theoriginalMonthlyrecord component.- Returns:
- the value of the
originalMonthlyrecord component
-
originalOneTime
Returns the value of theoriginalOneTimerecord component.- Returns:
- the value of the
originalOneTimerecord component
-
originalCurrency
Returns the value of theoriginalCurrencyrecord component.- Returns:
- the value of the
originalCurrencyrecord component
-
rate
-
kind
-
source
-
asOf
-
bandPercent
public double bandPercent()Returns the value of thebandPercentrecord component.- Returns:
- the value of the
bandPercentrecord component
-