Class CurveId
- java.lang.Object
-
- com.opengamma.strata.market.curve.CurveId
-
- All Implemented Interfaces:
MarketDataId<Curve>,NamedMarketDataId<Curve>,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CurveId extends Object implements NamedMarketDataId<Curve>, org.joda.beans.ImmutableBean, Serializable
An identifier used to access a curve by name.This is used when there is a need to obtain an instance of
Curve.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CurveGroupNamegetCurveGroupName()Gets the curve group name.CurveNamegetCurveName()Gets the curve name.MarketDataName<Curve>getMarketDataName()Gets the market data name.Class<Curve>getMarketDataType()Gets the type of data this identifier refers to.ObservableSourcegetObservableSource()Gets the source of observable market data.inthashCode()static org.joda.beans.TypedMetaBean<CurveId>meta()The meta-bean forCurveId.org.joda.beans.TypedMetaBean<CurveId>metaBean()static CurveIdof(CurveGroupName groupName, CurveName curveName)Obtains an instance used to obtain a curve by name.static CurveIdof(CurveGroupName groupName, CurveName curveName, ObservableSource obsSource)Obtains an instance used to obtain a curve by name, specifying the source of observable market data.static CurveIdof(String groupName, String curveName)Obtains an instance used to obtain a curve by name.StringtoString()
-
-
-
Method Detail
-
of
public static CurveId of(String groupName, String curveName)
Obtains an instance used to obtain a curve by name.- Parameters:
groupName- the curve group namecurveName- the curve name- Returns:
- the identifier
-
of
public static CurveId of(CurveGroupName groupName, CurveName curveName)
Obtains an instance used to obtain a curve by name.- Parameters:
groupName- the curve group namecurveName- the curve name- Returns:
- the identifier
-
of
public static CurveId of(CurveGroupName groupName, CurveName curveName, ObservableSource obsSource)
Obtains an instance used to obtain a curve by name, specifying the source of observable market data.- Parameters:
groupName- the curve group namecurveName- the curve nameobsSource- the source of observable market data- Returns:
- the identifier
-
getMarketDataType
public Class<Curve> getMarketDataType()
Description copied from interface:MarketDataIdGets the type of data this identifier refers to.- Specified by:
getMarketDataTypein interfaceMarketDataId<Curve>- Returns:
- the type of the market data this identifier refers to
-
getMarketDataName
public MarketDataName<Curve> getMarketDataName()
Description copied from interface:NamedMarketDataIdGets the market data name.This name can be used to obtain the market data within a single coherent data set.
- Specified by:
getMarketDataNamein interfaceNamedMarketDataId<Curve>- Returns:
- the name of the market data this identifier refers to
-
meta
public static org.joda.beans.TypedMetaBean<CurveId> meta()
The meta-bean forCurveId.- Returns:
- the meta-bean, not null
-
metaBean
public org.joda.beans.TypedMetaBean<CurveId> metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getCurveGroupName
public CurveGroupName getCurveGroupName()
Gets the curve group name.- Returns:
- the value of the property, not null
-
getCurveName
public CurveName getCurveName()
Gets the curve name.- Returns:
- the value of the property, not null
-
getObservableSource
public ObservableSource getObservableSource()
Gets the source of observable market data.- Returns:
- the value of the property, not null
-
-