Record Class DeltaHedger.HedgeReport
java.lang.Object
java.lang.Record
com.quantfinlib.hedging.DeltaHedger.HedgeReport
- Enclosing class:
DeltaHedger
public static record DeltaHedger.HedgeReport(double premium, double payoff, double tradingCosts, int rebalances, double turnover, double finalPnl)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHedgeReport(double premium, double payoff, double tradingCosts, int rebalances, double turnover, double finalPnl) Creates an instance of aHedgeReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefinalPnl()Returns the value of thefinalPnlrecord component.final inthashCode()Returns a hash code value for this object.doublepayoff()Returns the value of thepayoffrecord component.doublepremium()Returns the value of thepremiumrecord component.intReturns the value of therebalancesrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetradingCostsrecord component.doubleturnover()Returns the value of theturnoverrecord component.
-
Constructor Details
-
HedgeReport
public HedgeReport(double premium, double payoff, double tradingCosts, int rebalances, double turnover, double finalPnl) Creates an instance of aHedgeReportrecord class.- Parameters:
premium- the value for thepremiumrecord componentpayoff- the value for thepayoffrecord componenttradingCosts- the value for thetradingCostsrecord componentrebalances- the value for therebalancesrecord componentturnover- the value for theturnoverrecord componentfinalPnl- the value for thefinalPnlrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
payoff
public double payoff()Returns the value of thepayoffrecord component.- Returns:
- the value of the
payoffrecord component
-
tradingCosts
public double tradingCosts()Returns the value of thetradingCostsrecord component.- Returns:
- the value of the
tradingCostsrecord component
-
rebalances
public int rebalances()Returns the value of therebalancesrecord component.- Returns:
- the value of the
rebalancesrecord component
-
turnover
public double turnover()Returns the value of theturnoverrecord component.- Returns:
- the value of the
turnoverrecord component
-
finalPnl
public double finalPnl()Returns the value of thefinalPnlrecord component.- Returns:
- the value of the
finalPnlrecord component
-