Class LabelDateParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.param.LabelDateParameterMetadata
-
- All Implemented Interfaces:
DatedParameterMetadata,ParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class LabelDateParameterMetadata extends Object implements DatedParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Parameter metadata based on a date and label.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLabelDateParameterMetadata.MetaThe meta-bean forLabelDateParameterMetadata.
-
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.StringgetIdentifier()Gets the identifier, which is the label.StringgetLabel()Gets the label that describes the parameter.inthashCode()static LabelDateParameterMetadata.Metameta()The meta-bean forLabelDateParameterMetadata.LabelDateParameterMetadata.MetametaBean()static LabelDateParameterMetadataof(LocalDate date)Obtains an instance using the date.static LabelDateParameterMetadataof(LocalDate date, String label)Obtains an instance using the date, specifying the label.StringtoString()
-
-
-
Method Detail
-
of
public static LabelDateParameterMetadata of(LocalDate date)
Obtains an instance using the date.- Parameters:
date- the date associated with the parameter- Returns:
- the parameter metadata based on the date
-
of
public static LabelDateParameterMetadata of(LocalDate date, String label)
Obtains an instance using the date, specifying the label.- Parameters:
date- the date associated with the parameterlabel- the label to use- Returns:
- the parameter metadata based on the date and label
-
getIdentifier
public String getIdentifier()
Gets the identifier, which is the label.- Specified by:
getIdentifierin interfaceParameterMetadata- Returns:
- the label
-
meta
public static LabelDateParameterMetadata.Meta meta()
The meta-bean forLabelDateParameterMetadata.- Returns:
- the meta-bean, not null
-
metaBean
public LabelDateParameterMetadata.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
-
getLabel
public String getLabel()
Gets the label that describes the parameter.- Specified by:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
-