Class 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
    • Method Detail

      • of

        public static CdsQuote of​(CdsQuoteConvention quoteConvention,
                                  double quotedValue)
        Creates an instance.
        Parameters:
        quoteConvention - the quote convention
        quotedValue - the quoted value
        Returns:
        the instance
      • meta

        public static CdsQuote.Meta meta()
        The meta-bean for CdsQuote.
        Returns:
        the meta-bean, not null
      • metaBean

        public CdsQuote.Meta metaBean()
        Specified by:
        metaBean in interface org.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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object