Record Class DesignDecisionRecord.FxRate

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.FxRate
Record Components:
from - the currency converted from
to - the currency converted to
rate - units of to per one from
kind - PINNED, SUPPLIED, LIVE or REFERENCE
source - the rate's source
asOf - the rate's date
bandPercent - the widening applied to converted ranges, either side
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.FxRate(String from, String to, BigDecimal rate, String kind, String source, String asOf, double bandPercent) extends Record
An exchange rate a line was converted at.
  • Constructor Details

    • FxRate

      public FxRate(String from, String to, BigDecimal rate, String kind, String source, String asOf, double bandPercent)
      Creates an instance of a FxRate record class.
      Parameters:
      from - the value for the from record component
      to - the value for the to 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.
    • from

      public String from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to

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

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

      public String 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