Class CdsIndexCalibrationTrade
- java.lang.Object
-
- com.opengamma.strata.product.credit.CdsIndexCalibrationTrade
-
- All Implemented Interfaces:
CalculationTarget
,PortfolioItem
,Trade
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class CdsIndexCalibrationTrade extends Object implements Trade, org.joda.beans.ImmutableBean, Serializable
A trade in a CDS index used for credit curve calibration.The CDS index trade and market quote are stored in this class.
CdsIndexTrade
andResolvedCdsIndexTrade
should be used for pricing.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CdsIndexCalibrationTrade.Meta
The meta-bean forCdsIndexCalibrationTrade
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
TradeInfo
getInfo()
Gets the standard trade information.CdsQuote
getQuote()
Gets the CDS index quote.CdsIndexTrade
getUnderlyingTrade()
Gets the underlying CDS index trade.int
hashCode()
static CdsIndexCalibrationTrade.Meta
meta()
The meta-bean forCdsIndexCalibrationTrade
.CdsIndexCalibrationTrade.Meta
metaBean()
static CdsIndexCalibrationTrade
of(CdsIndexTrade trade, CdsQuote quote)
Creates an instance.PortfolioItemSummary
summarize()
Summarizes the portfolio item.String
toString()
CdsIndexCalibrationTrade
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
-
-
-
Method Detail
-
of
public static CdsIndexCalibrationTrade of(CdsIndexTrade trade, CdsQuote quote)
Creates an instance.- Parameters:
trade
- the tradequote
- the quote- Returns:
- the instance
-
getInfo
public TradeInfo getInfo()
Description copied from interface:Trade
Gets the standard trade information.All trades contain this standard set of information.
- Specified by:
getInfo
in interfacePortfolioItem
- Specified by:
getInfo
in interfaceTrade
- Returns:
- the trade information
-
withInfo
public CdsIndexCalibrationTrade withInfo(PortfolioItemInfo info)
Description copied from interface:Trade
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in interfaceTrade
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
summarize
public PortfolioItemSummary summarize()
Description copied from interface:PortfolioItem
Summarizes the portfolio item.This provides a summary, including a human readable description.
- Specified by:
summarize
in interfacePortfolioItem
- Specified by:
summarize
in interfaceTrade
- Returns:
- the summary of the item
-
meta
public static CdsIndexCalibrationTrade.Meta meta()
The meta-bean forCdsIndexCalibrationTrade
.- Returns:
- the meta-bean, not null
-
metaBean
public CdsIndexCalibrationTrade.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getUnderlyingTrade
public CdsIndexTrade getUnderlyingTrade()
Gets the underlying CDS index trade.- Returns:
- the value of the property, not null
-
getQuote
public CdsQuote getQuote()
Gets the CDS index quote.- Returns:
- the value of the property, not null
-
-