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,
CalculationParameters
should 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 CalculationParametersId
STANDARD
The standard instance of this identifier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Class<CalculationParameters>
getMarketDataType()
Gets the type of data this identifier refers to.String
getName()
Gets the name of the parameters.int
hashCode()
static org.joda.beans.TypedMetaBean<CalculationParametersId>
meta()
The meta-bean forCalculationParametersId
.org.joda.beans.TypedMetaBean<CalculationParametersId>
metaBean()
static CalculationParametersId
of(String name)
Obtains an instance used to obtain calculation parameters by name.String
toString()
-
-
-
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
STANDARD
constant instead.- Parameters:
name
- the name- Returns:
- the identifier
-
getMarketDataType
public Class<CalculationParameters> getMarketDataType()
Description copied from interface:MarketDataId
Gets the type of data this identifier refers to.- Specified by:
getMarketDataType
in 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:
metaBean
in interfaceorg.joda.beans.Bean
-
getName
public String getName()
Gets the name of the parameters.- Returns:
- the value of the property, not null
-
-