public final class Quote extends Object implements org.joda.beans.ImmutableBean
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Quote.Meta
The meta-bean for
Quote. |
| Modifier and Type | Method and 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 for
Quote. |
Quote.Meta |
metaBean() |
static Quote |
of(QuoteId quoteId,
double value)
Obtains an instance from the quote identifier and value.
|
String |
toString() |
public static Quote of(QuoteId quoteId, double value)
quoteId - the quote identifiervalue - the value for the given quotepublic static Quote.Meta meta()
Quote.public Quote.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic QuoteId getQuoteId()
public double getValue()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.