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 classTenorParameterMetadata.MetaThe meta-bean forTenorParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TenorgetIdentifier()Gets the identifier, which is the tenor.StringgetLabel()Gets the label that describes the parameter, defaulted to the tenor.TenorgetTenor()Gets the tenor associated with the parameter.inthashCode()static TenorParameterMetadata.Metameta()The meta-bean forTenorParameterMetadata.TenorParameterMetadata.MetametaBean()static TenorParameterMetadataof(Tenor tenor)Obtains an instance using the tenor.static TenorParameterMetadataof(Tenor tenor, String label)Obtains an instance using the tenor, specifying the label.StringtoString()TenorParameterMetadatawithTenor(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:
getIdentifierin interfaceParameterMetadata- Returns:
- the tenor
-
withTenor
public TenorParameterMetadata withTenor(Tenor tenor)
Description copied from interface:TenoredParameterMetadataReturns an instance with the tenor updated.- Specified by:
withTenorin 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:
metaBeanin interfaceorg.joda.beans.Bean
-
getTenor
public Tenor getTenor()
Gets the tenor associated with the parameter.- Specified by:
getTenorin 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:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
-