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
QuoteId
specifies 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 class
Quote.Meta
The meta-bean forQuote
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
QuoteId
getQuoteId()
Gets the identifier of the quoted value.double
getValue()
Gets the value that was quoted.int
hashCode()
static Quote.Meta
meta()
The meta-bean forQuote
.Quote.Meta
metaBean()
static Quote
of(QuoteId quoteId, double value)
Obtains an instance from the quote identifier and value.String
toString()
-
-
-
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:
metaBean
in 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
-
-