Class CdsQuote
- java.lang.Object
-
- com.opengamma.strata.product.credit.CdsQuote
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class CdsQuote extends Object implements org.joda.beans.ImmutableBean, Serializable
Market quote for a single-name credit default swap (CDS).The CDS quote convention and quoted value are stored in this class.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CdsQuote.Meta
The meta-bean forCdsQuote
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CdsQuoteConvention
getQuoteConvention()
Gets the CDS quote convention.double
getQuotedValue()
Gets the quoted value.int
hashCode()
static CdsQuote.Meta
meta()
The meta-bean forCdsQuote
.CdsQuote.Meta
metaBean()
static CdsQuote
of(CdsQuoteConvention quoteConvention, double quotedValue)
Creates an instance.String
toString()
-
-
-
Method Detail
-
of
public static CdsQuote of(CdsQuoteConvention quoteConvention, double quotedValue)
Creates an instance.- Parameters:
quoteConvention
- the quote conventionquotedValue
- the quoted value- Returns:
- the instance
-
meta
public static CdsQuote.Meta meta()
The meta-bean forCdsQuote
.- Returns:
- the meta-bean, not null
-
metaBean
public CdsQuote.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getQuoteConvention
public CdsQuoteConvention getQuoteConvention()
Gets the CDS quote convention.- Returns:
- the value of the property, not null
-
getQuotedValue
public double getQuotedValue()
Gets the quoted value.This value must be represented in decimal form.
- Returns:
- the value of the property
-
-