Class TenorDateParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.param.TenorDateParameterMetadata
-
- All Implemented Interfaces:
DatedParameterMetadata,ParameterMetadata,TenoredParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class TenorDateParameterMetadata extends Object implements DatedParameterMetadata, TenoredParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Parameter metadata based on a date and tenor.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTenorDateParameterMetadata.MetaThe meta-bean forTenorDateParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LocalDategetDate()Gets the date associated with the parameter.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 TenorDateParameterMetadata.Metameta()The meta-bean forTenorDateParameterMetadata.TenorDateParameterMetadata.MetametaBean()static TenorDateParameterMetadataof(LocalDate date, Tenor tenor)Obtains an instance using the tenor.static TenorDateParameterMetadataof(LocalDate date, Tenor tenor, String label)Obtains an instance using the tenor, specifying the label.StringtoString()TenorDateParameterMetadatawithTenor(Tenor tenor)Returns an instance with the tenor updated.
-
-
-
Method Detail
-
of
public static TenorDateParameterMetadata of(LocalDate date, Tenor tenor)
Obtains an instance using the tenor.- Parameters:
date- the date associated with the parametertenor- the tenor associated with the parameter- Returns:
- the parameter metadata based on the tenor
-
of
public static TenorDateParameterMetadata of(LocalDate date, Tenor tenor, String label)
Obtains an instance using the tenor, specifying the label.- Parameters:
date- the date associated with the parametertenor- 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 TenorDateParameterMetadata 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 TenorDateParameterMetadata.Meta meta()
The meta-bean forTenorDateParameterMetadata.- Returns:
- the meta-bean, not null
-
metaBean
public TenorDateParameterMetadata.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getDate
public LocalDate getDate()
Gets the date associated with the parameter.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.
- Specified by:
getDatein interfaceDatedParameterMetadata- Returns:
- the value of the property, not null
-
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
-
-