public final class YearMonthDateParameterMetadata extends Object implements DatedParameterMetadata, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
YearMonthDateParameterMetadata.Meta
The meta-bean for
YearMonthDateParameterMetadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LocalDate |
getDate()
Gets the date associated with the parameter.
|
YearMonth |
getIdentifier()
Gets the identifier, which is the year-month.
|
String |
getLabel()
Gets the label that describes the parameter, defaulted to the year-month.
|
YearMonth |
getYearMonth()
Gets the year-month associated with the parameter.
|
int |
hashCode() |
static YearMonthDateParameterMetadata.Meta |
meta()
The meta-bean for
YearMonthDateParameterMetadata. |
YearMonthDateParameterMetadata.Meta |
metaBean() |
static YearMonthDateParameterMetadata |
of(LocalDate date,
YearMonth yearMonth)
Obtains an instance using the year-month.
|
static YearMonthDateParameterMetadata |
of(LocalDate date,
YearMonth yearMonth,
String label)
Obtains an instance using the year-month, specifying the label.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, listOfEmptypublic static YearMonthDateParameterMetadata of(LocalDate date, YearMonth yearMonth)
date - the date associated with the parameteryearMonth - the year-month of the curve nodepublic static YearMonthDateParameterMetadata of(LocalDate date, YearMonth yearMonth, String label)
date - the date associated with the parameteryearMonth - the year-month of the curve nodelabel - the label to usepublic YearMonth getIdentifier()
getIdentifier in interface ParameterMetadatapublic static YearMonthDateParameterMetadata.Meta meta()
YearMonthDateParameterMetadata.public YearMonthDateParameterMetadata.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LocalDate getDate()
This is the date that is most closely associated with the parameter. The actual parameter is typically a year fraction based on a day count.
getDate in interface DatedParameterMetadatapublic YearMonth getYearMonth()
public String getLabel()
getLabel in interface ParameterMetadataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.