Class Quote

  • All Implemented Interfaces:
    org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class Quote
    extends Object
    implements org.joda.beans.ImmutableBean
    A quoted value for a given security, such as an equity or future.

    This represents a single numeric value of a given security, such as the mid point between the buy/sell. The QuoteId specifies the security, the type of price and the price source.

    This class is immutable and thread-safe.

    • Method Detail

      • of

        public static Quote of​(QuoteId quoteId,
                               double value)
        Obtains an instance from the quote identifier and value.
        quoteId - the quote identifier
        value - the value for the given quote
        the quote instance for the given values
      • meta

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

        public Quote.Meta metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getQuoteId

        public QuoteId getQuoteId()
        Gets the identifier of the quoted value.
        the value of the property, not null
      • getValue

        public double getValue()
        Gets the value that was quoted.
        the value of the property, not null
      • hashCode

        public int hashCode()
        hashCode in class Object