Record Class CostLine.Conversion

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.CostLine.Conversion
Record Components:
originalMonthly - the monthly amount as priced
originalOneTime - the one-time amount as priced
originalCurrency - the currency it was priced in
rate - units of the line's currency per one unit of originalCurrency
kind - where the rate came from: CurrencyConverter.Kind
source - the rate's source, as stated by the converter
asOf - the rate's date
bandPercent - 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 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 a Conversion record class.
      Parameters:
      originalMonthly - the value for the originalMonthly record component
      originalOneTime - the value for the originalOneTime record component
      originalCurrency - the value for the originalCurrency record component
      rate - the value for the rate record component
      kind - the value for the kind record component
      source - the value for the source record component
      asOf - the value for the asOf record component
      bandPercent - the value for the bandPercent record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • originalMonthly

      public BigDecimal originalMonthly()
      Returns the value of the originalMonthly record component.
      Returns:
      the value of the originalMonthly record component
    • originalOneTime

      public BigDecimal originalOneTime()
      Returns the value of the originalOneTime record component.
      Returns:
      the value of the originalOneTime record component
    • originalCurrency

      public String originalCurrency()
      Returns the value of the originalCurrency record component.
      Returns:
      the value of the originalCurrency record component
    • rate

      public BigDecimal rate()
      Returns the value of the rate record component.
      Returns:
      the value of the rate record component
    • kind

      public CurrencyConverter.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • asOf

      public String asOf()
      Returns the value of the asOf record component.
      Returns:
      the value of the asOf record component
    • bandPercent

      public double bandPercent()
      Returns the value of the bandPercent record component.
      Returns:
      the value of the bandPercent record component