public final class TenorDateParameterMetadata extends Object implements DatedParameterMetadata, TenoredParameterMetadata, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TenorDateParameterMetadata.Meta
The meta-bean for
TenorDateParameterMetadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LocalDate |
getDate()
Gets the date associated with the parameter.
|
Tenor |
getIdentifier()
Gets the identifier, which is the tenor.
|
String |
getLabel()
Gets the label that describes the parameter, defaulted to the tenor.
|
Tenor |
getTenor()
Gets the tenor associated with the parameter.
|
int |
hashCode() |
static TenorDateParameterMetadata.Meta |
meta()
The meta-bean for
TenorDateParameterMetadata. |
TenorDateParameterMetadata.Meta |
metaBean() |
static TenorDateParameterMetadata |
of(LocalDate date,
Tenor tenor)
Obtains an instance using the tenor.
|
static TenorDateParameterMetadata |
of(LocalDate date,
Tenor tenor,
String label)
Obtains an instance using the tenor, specifying the label.
|
String |
toString() |
TenorDateParameterMetadata |
withTenor(Tenor tenor)
Returns an instance with the tenor updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, listOfEmptypublic static TenorDateParameterMetadata of(LocalDate date, Tenor tenor)
date - the date associated with the parametertenor - the tenor associated with the parameterpublic static TenorDateParameterMetadata of(LocalDate date, Tenor tenor, String label)
date - the date associated with the parametertenor - the tenor associated with the parameterlabel - the label to usepublic Tenor getIdentifier()
getIdentifier in interface ParameterMetadatapublic TenorDateParameterMetadata withTenor(Tenor tenor)
TenoredParameterMetadatawithTenor in interface TenoredParameterMetadatatenor - the tenor to update topublic static TenorDateParameterMetadata.Meta meta()
TenorDateParameterMetadata.public TenorDateParameterMetadata.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 Tenor getTenor()
getTenor in interface TenoredParameterMetadatapublic 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.