Record Class DesignDecisionRecord.FxRate
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.FxRate
- Record Components:
from- the currency converted fromto- the currency converted torate- units oftoper onefromkind-PINNED,SUPPLIED,LIVEorREFERENCEsource- the rate's sourceasOf- the rate's datebandPercent- the widening applied to converted ranges, either side
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
Constructors -
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.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.rate()Returns the value of theraterecord component.source()Returns the value of thesourcerecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FxRate
public FxRate(String from, String to, BigDecimal rate, String kind, String source, String asOf, double bandPercent) Creates an instance of aFxRaterecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord 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. -
from
-
to
-
rate
-
kind
-
source
-
asOf
-
bandPercent
public double bandPercent()Returns the value of thebandPercentrecord component.- Returns:
- the value of the
bandPercentrecord component
-