Class GenericVolatilitySurfacePeriodParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.pricer.common.GenericVolatilitySurfacePeriodParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class GenericVolatilitySurfacePeriodParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Surface node metadata for a generic volatility surface node with a specific period to expiry and strike.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericVolatilitySurfacePeriodParameterMetadata.MetaThe meta-bean forGenericVolatilitySurfacePeriodParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Pair<Period,Strike>getIdentifier()Returns an object used to identify the parameter.StringgetLabel()Gets the label that describes the node.PeriodgetPeriod()Gets the period of the surface node.StrikegetStrike()Gets the strike of the surface node.inthashCode()static GenericVolatilitySurfacePeriodParameterMetadata.Metameta()The meta-bean forGenericVolatilitySurfacePeriodParameterMetadata.GenericVolatilitySurfacePeriodParameterMetadata.MetametaBean()static GenericVolatilitySurfacePeriodParameterMetadataof(Period period, Strike strike)Creates node metadata using period and strike.static GenericVolatilitySurfacePeriodParameterMetadataof(Period period, Strike strike, String label)Creates node using period, strike and label.StringtoString()
-
-
-
Method Detail
-
of
public static GenericVolatilitySurfacePeriodParameterMetadata of(Period period, Strike strike)
Creates node metadata using period and strike.- Parameters:
period- the periodstrike- the strike- Returns:
- node metadata
-
of
public static GenericVolatilitySurfacePeriodParameterMetadata of(Period period, Strike strike, String label)
Creates node using period, strike and label.- Parameters:
period- the periodstrike- the strikelabel- the label to use- Returns:
- the metadata
-
getIdentifier
public Pair<Period,Strike> 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 GenericVolatilitySurfacePeriodParameterMetadata.Meta meta()
The meta-bean forGenericVolatilitySurfacePeriodParameterMetadata.- Returns:
- the meta-bean, not null
-
metaBean
public GenericVolatilitySurfacePeriodParameterMetadata.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getPeriod
public Period getPeriod()
Gets the period of the surface node.This is the period to expiry that the node on the surface is defined as. There is not necessarily a direct relationship with a date from an underlying instrument.
- Returns:
- the value of the property
-
getStrike
public Strike getStrike()
Gets the strike of the surface node.This is the strike that the node on the surface is defined as.
- Returns:
- the value of the property, not null
-
getLabel
public String getLabel()
Gets the label that describes the node.- Specified by:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
-