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 classCdsQuote.MetaThe meta-bean forCdsQuote.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CdsQuoteConventiongetQuoteConvention()Gets the CDS quote convention.doublegetQuotedValue()Gets the quoted value.inthashCode()static CdsQuote.Metameta()The meta-bean forCdsQuote.CdsQuote.MetametaBean()static CdsQuoteof(CdsQuoteConvention quoteConvention, double quotedValue)Creates an instance.StringtoString()
-
-
-
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:
metaBeanin 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
-
-