Record Class FxHedger.FxExposure
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.FxHedger.FxExposure
- Enclosing class:
FxHedger
-
Constructor Summary
ConstructorsConstructorDescriptionFxExposure(String currency, double amountBase) Creates an instance of aFxExposurerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theamountBaserecord component.currency()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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FxExposure
Creates an instance of aFxExposurerecord class.- Parameters:
currency- the value for thecurrencyrecord componentamountBase- the value for theamountBaserecord 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. -
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
amountBase
public double amountBase()Returns the value of theamountBaserecord component.- Returns:
- the value of the
amountBaserecord component
-