public final class TenorTenorParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TenorTenorParameterMetadata.Meta
The meta-bean for
TenorTenorParameterMetadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Tenor |
getExpiryTenor()
Gets the expiry tenor associated with the parameter.
|
Pair<Tenor,Tenor> |
getIdentifier()
Returns an object used to identify the parameter.
|
String |
getLabel()
Gets the label that describes the parameter, defaulted to both tenors.
|
Tenor |
getUnderlyingTenor()
Gets the underlying tenor associated with the parameter.
|
int |
hashCode() |
static TenorTenorParameterMetadata.Meta |
meta()
The meta-bean for
TenorTenorParameterMetadata. |
TenorTenorParameterMetadata.Meta |
metaBean() |
static TenorTenorParameterMetadata |
of(Tenor expiryTenor,
Tenor underlyingTenor)
Creates node metadata with expiry tenor and underlying tenor.
|
static TenorTenorParameterMetadata |
of(Tenor expiryTenor,
Tenor underlyingTenor,
String label)
Creates node metadata with expiry tenor, underlying tenor and label.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitempty, listOfEmptypublic static TenorTenorParameterMetadata of(Tenor expiryTenor, Tenor underlyingTenor)
expiryTenor - the expiry tenorunderlyingTenor - the underlyingpublic static TenorTenorParameterMetadata of(Tenor expiryTenor, Tenor underlyingTenor, String label)
expiryTenor - the expiry tenorunderlyingTenor - the underlyinglabel - the labelpublic Pair<Tenor,Tenor> getIdentifier()
ParameterMetadataA good choice of identifier is one that makes sense to the user and can easily be created as part of a scenario definition. For example, many nodes types are naturally identified by a tenor.
The identifier must satisfy the following criteria:
hashCode() and equals().getIdentifier in interface ParameterMetadatapublic static TenorTenorParameterMetadata.Meta meta()
TenorTenorParameterMetadata.public TenorTenorParameterMetadata.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Tenor getExpiryTenor()
public Tenor getUnderlyingTenor()
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.