Class TenorTenorParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.param.TenorTenorParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class TenorTenorParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Parameter metadata based on an expiry tenor, an underlying tenor and their respective year fractions.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTenorTenorParameterMetadata.MetaThe meta-bean forTenorTenorParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TenorgetExpiryTenor()Gets the expiry tenor associated with the parameter.Pair<Tenor,Tenor>getIdentifier()Returns an object used to identify the parameter.StringgetLabel()Gets the label that describes the parameter, defaulted to both tenors.TenorgetUnderlyingTenor()Gets the underlying tenor associated with the parameter.inthashCode()static TenorTenorParameterMetadata.Metameta()The meta-bean forTenorTenorParameterMetadata.TenorTenorParameterMetadata.MetametaBean()static TenorTenorParameterMetadataof(Tenor expiryTenor, Tenor underlyingTenor)Creates node metadata with expiry tenor and underlying tenor.static TenorTenorParameterMetadataof(Tenor expiryTenor, Tenor underlyingTenor, String label)Creates node metadata with expiry tenor, underlying tenor and label.StringtoString()
-
-
-
Method Detail
-
of
public static TenorTenorParameterMetadata of(Tenor expiryTenor, Tenor underlyingTenor)
Creates node metadata with expiry tenor and underlying tenor.- Parameters:
expiryTenor- the expiry tenorunderlyingTenor- the underlying- Returns:
- the metadata
-
of
public static TenorTenorParameterMetadata of(Tenor expiryTenor, Tenor underlyingTenor, String label)
Creates node metadata with expiry tenor, underlying tenor and label.- Parameters:
expiryTenor- the expiry tenorunderlyingTenor- the underlyinglabel- the label- Returns:
- the metadata
-
getIdentifier
public Pair<Tenor,Tenor> getIdentifier()
Description copied from interface:ParameterMetadataReturns an object used to identify the parameter.A 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:
- It must be non-null
- It should be unique within a single data set
- It should have a sensible implementation of
hashCode()andequals().
- Specified by:
getIdentifierin interfaceParameterMetadata- Returns:
- an object used to uniquely identify the parameter within the data
-
meta
public static TenorTenorParameterMetadata.Meta meta()
The meta-bean forTenorTenorParameterMetadata.- Returns:
- the meta-bean, not null
-
metaBean
public TenorTenorParameterMetadata.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getExpiryTenor
public Tenor getExpiryTenor()
Gets the expiry tenor associated with the parameter.- Returns:
- the value of the property, not null
-
getUnderlyingTenor
public Tenor getUnderlyingTenor()
Gets the underlying tenor associated with the parameter.- Returns:
- the value of the property, not null
-
getLabel
public String getLabel()
Gets the label that describes the parameter, defaulted to both tenors.- Specified by:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
-