Class Quote
- java.lang.Object
-
- com.opengamma.strata.market.observable.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
QuoteIdspecifies the security, the type of price and the price source.This class is immutable and thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuote.MetaThe meta-bean forQuote.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)QuoteIdgetQuoteId()Gets the identifier of the quoted value.doublegetValue()Gets the value that was quoted.inthashCode()static Quote.Metameta()The meta-bean forQuote.Quote.MetametaBean()static Quoteof(QuoteId quoteId, double value)Obtains an instance from the quote identifier and value.StringtoString()
-
-
-
Method Detail
-
of
public static Quote of(QuoteId quoteId, double value)
Obtains an instance from the quote identifier and value.- Parameters:
quoteId- the quote identifiervalue- the value for the given quote- Returns:
- the quote instance for the given values
-
meta
public static Quote.Meta meta()
The meta-bean forQuote.- Returns:
- the meta-bean, not null
-
metaBean
public Quote.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getQuoteId
public QuoteId getQuoteId()
Gets the identifier of the quoted value.- Returns:
- the value of the property, not null
-
getValue
public double getValue()
Gets the value that was quoted.- Returns:
- the value of the property, not null
-
-