Class CdsQuote

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class CdsQuote
    extends java.lang.Object
    implements ImmutableBean, java.io.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
      • 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
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object