Class TenorParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.param.TenorParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata
,TenoredParameterMetadata
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class TenorParameterMetadata extends Object implements TenoredParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Parameter metadata based on a tenor.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TenorParameterMetadata.Meta
The meta-bean forTenorParameterMetadata
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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 TenorParameterMetadata.Meta
meta()
The meta-bean forTenorParameterMetadata
.TenorParameterMetadata.Meta
metaBean()
static TenorParameterMetadata
of(Tenor tenor)
Obtains an instance using the tenor.static TenorParameterMetadata
of(Tenor tenor, String label)
Obtains an instance using the tenor, specifying the label.String
toString()
TenorParameterMetadata
withTenor(Tenor tenor)
Returns an instance with the tenor updated.
-
-
-
Method Detail
-
of
public static TenorParameterMetadata of(Tenor tenor)
Obtains an instance using the tenor.- Parameters:
tenor
- the tenor associated with the parameter- Returns:
- the parameter metadata based on the tenor
-
of
public static TenorParameterMetadata of(Tenor tenor, String label)
Obtains an instance using the tenor, specifying the label.- Parameters:
tenor
- the tenor associated with the parameterlabel
- the label to use- Returns:
- the parameter metadata based on the tenor
-
getIdentifier
public Tenor getIdentifier()
Gets the identifier, which is the tenor.- Specified by:
getIdentifier
in interfaceParameterMetadata
- Returns:
- the tenor
-
withTenor
public TenorParameterMetadata withTenor(Tenor tenor)
Description copied from interface:TenoredParameterMetadata
Returns an instance with the tenor updated.- Specified by:
withTenor
in interfaceTenoredParameterMetadata
- Parameters:
tenor
- the tenor to update to- Returns:
- the updated metadata
-
meta
public static TenorParameterMetadata.Meta meta()
The meta-bean forTenorParameterMetadata
.- Returns:
- the meta-bean, not null
-
metaBean
public TenorParameterMetadata.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getTenor
public Tenor getTenor()
Gets the tenor associated with the parameter.- Specified by:
getTenor
in interfaceTenoredParameterMetadata
- Returns:
- the value of the property, not null
-
getLabel
public String getLabel()
Gets the label that describes the parameter, defaulted to the tenor.- Specified by:
getLabel
in interfaceParameterMetadata
- Returns:
- the value of the property, not empty
-
-