public final class CdsCalibrationTrade extends Object implements Trade, org.joda.beans.ImmutableBean, Serializable
The CDS trade and market quote are stored in this class.
CdsTrade
and ResolvedCdsTrade
should be used for pricing.
Modifier and Type | Class and Description |
---|---|
static class |
CdsCalibrationTrade.Meta
The meta-bean for
CdsCalibrationTrade . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TradeInfo |
getInfo()
Gets the standard trade information.
|
CdsQuote |
getQuote()
Gets the CDS quote.
|
CdsTrade |
getUnderlyingTrade()
Gets the underlying CDS trade.
|
int |
hashCode() |
static CdsCalibrationTrade.Meta |
meta()
The meta-bean for
CdsCalibrationTrade . |
CdsCalibrationTrade.Meta |
metaBean() |
static CdsCalibrationTrade |
of(CdsTrade trade,
CdsQuote quote)
Creates an instance.
|
PortfolioItemSummary |
summarize()
Summarizes the portfolio item.
|
String |
toString() |
CdsCalibrationTrade |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
public static CdsCalibrationTrade of(CdsTrade trade, CdsQuote quote)
trade
- the tradequote
- the quotepublic TradeInfo getInfo()
Trade
All trades contain this standard set of information.
getInfo
in interface PortfolioItem
getInfo
in interface Trade
public CdsCalibrationTrade withInfo(PortfolioItemInfo info)
Trade
withInfo
in interface PortfolioItem
withInfo
in interface Trade
info
- the new infopublic PortfolioItemSummary summarize()
PortfolioItem
This provides a summary, including a human readable description.
summarize
in interface PortfolioItem
summarize
in interface Trade
public static CdsCalibrationTrade.Meta meta()
CdsCalibrationTrade
.public CdsCalibrationTrade.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public CdsTrade getUnderlyingTrade()
public CdsQuote getQuote()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.