public final class PriceIndexObservation extends Object implements IndexObservation, ImmutableBean, Serializable
Observing a Price index requires knowledge of the index and fixing date.
Modifier and Type | Class and Description |
---|---|
static class |
PriceIndexObservation.Meta
The meta-bean for
PriceIndexObservation . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this observation to another based on the index and fixing date.
|
Currency |
getCurrency()
Gets the currency of the Ibor index.
|
YearMonth |
getFixingMonth()
Gets the fixing month.
|
PriceIndex |
getIndex()
Gets the FX index.
|
int |
hashCode()
Returns a hash code based on the index and fixing date.
|
static PriceIndexObservation.Meta |
meta()
The meta-bean for
PriceIndexObservation . |
PriceIndexObservation.Meta |
metaBean() |
static PriceIndexObservation |
of(PriceIndex index,
YearMonth fixingMonth)
Creates an instance from an index and fixing date.
|
<R> Property<R> |
property(String propertyName) |
Set<String> |
propertyNames() |
String |
toString() |
public static PriceIndexObservation of(PriceIndex index, YearMonth fixingMonth)
The reference data is used to find the maturity date from the fixing date.
index
- the indexfixingMonth
- the fixing monthpublic Currency getCurrency()
public boolean equals(Object obj)
The maturity date is ignored.
public int hashCode()
The maturity date is ignored.
public static PriceIndexObservation.Meta meta()
PriceIndexObservation
.public PriceIndexObservation.Meta metaBean()
public Set<String> propertyNames()
propertyNames
in interface Bean
public PriceIndex getIndex()
The rate will be queried from this index.
getIndex
in interface IndexObservation
public YearMonth getFixingMonth()
The index will be observed for this month.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.