Class CurveName
- java.lang.Object
-
- com.opengamma.strata.data.MarketDataName<Curve>
-
- com.opengamma.strata.market.curve.CurveName
-
- All Implemented Interfaces:
Named
,Serializable
,Comparable<MarketDataName<?>>
public final class CurveName extends MarketDataName<Curve> implements Serializable
The name of a curve.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Curve>
getMarketDataType()
Gets the type of data this name refers to.String
getName()
Gets the market data name.static CurveName
of(String name)
Obtains an instance from the specified name.-
Methods inherited from class com.opengamma.strata.data.MarketDataName
compareTo, equals, hashCode, toString
-
-
-
-
Method Detail
-
of
public static CurveName of(String name)
Obtains an instance from the specified name.Curve names may contain any character, but must not be empty.
- Parameters:
name
- the name of the curve- Returns:
- a curve with the specified name
-
getMarketDataType
public Class<Curve> getMarketDataType()
Description copied from class:MarketDataName
Gets the type of data this name refers to.- Specified by:
getMarketDataType
in classMarketDataName<Curve>
- Returns:
- the type of the market data this name refers to
-
getName
public String getName()
Description copied from class:MarketDataName
Gets the market data name.The name must be unique within any single coherent data set.
- Specified by:
getName
in interfaceNamed
- Specified by:
getName
in classMarketDataName<Curve>
- Returns:
- the unique name
-
-