Package com.opengamma.strata.calc.runner
Class CalculationParametersId
- java.lang.Object
-
- com.opengamma.strata.calc.runner.CalculationParametersId
-
- All Implemented Interfaces:
MarketDataId<CalculationParameters>,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CalculationParametersId extends Object implements MarketDataId<CalculationParameters>, org.joda.beans.ImmutableBean, Serializable
An identifier used to access calculation parameters by name.In most cases,
CalculationParametersshould not be stored inMarketData. However, there can be occasions where it is useful to be able to pass around the parameters with the market data, notably when the market data is only intended to be interpreted in one way.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CalculationParametersIdSTANDARDThe standard instance of this identifier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Class<CalculationParameters>getMarketDataType()Gets the type of data this identifier refers to.StringgetName()Gets the name of the parameters.inthashCode()static org.joda.beans.TypedMetaBean<CalculationParametersId>meta()The meta-bean forCalculationParametersId.org.joda.beans.TypedMetaBean<CalculationParametersId>metaBean()static CalculationParametersIdof(String name)Obtains an instance used to obtain calculation parameters by name.StringtoString()
-
-
-
Field Detail
-
STANDARD
public static final CalculationParametersId STANDARD
The standard instance of this identifier.
-
-
Method Detail
-
of
public static CalculationParametersId of(String name)
Obtains an instance used to obtain calculation parameters by name.In most cases, it is better to use the
STANDARDconstant instead.- Parameters:
name- the name- Returns:
- the identifier
-
getMarketDataType
public Class<CalculationParameters> getMarketDataType()
Description copied from interface:MarketDataIdGets the type of data this identifier refers to.- Specified by:
getMarketDataTypein interfaceMarketDataId<CalculationParameters>- Returns:
- the type of the market data this identifier refers to
-
meta
public static org.joda.beans.TypedMetaBean<CalculationParametersId> meta()
The meta-bean forCalculationParametersId.- Returns:
- the meta-bean, not null
-
metaBean
public org.joda.beans.TypedMetaBean<CalculationParametersId> metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getName
public String getName()
Gets the name of the parameters.- Returns:
- the value of the property, not null
-
-