Class SurfaceName
- java.lang.Object
-
- com.opengamma.strata.data.MarketDataName<Surface>
-
- com.opengamma.strata.market.surface.SurfaceName
-
- All Implemented Interfaces:
Named
,Serializable
,Comparable<MarketDataName<?>>
public final class SurfaceName extends MarketDataName<Surface> implements Serializable
The name of a surface.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Surface>
getMarketDataType()
Gets the type of data this name refers to.String
getName()
Gets the market data name.static SurfaceName
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 SurfaceName of(String name)
Obtains an instance from the specified name.Surface names may contain any character, but must not be empty.
- Parameters:
name
- the name of the surface- Returns:
- a surface with the specified name
-
getMarketDataType
public Class<Surface> getMarketDataType()
Description copied from class:MarketDataName
Gets the type of data this name refers to.- Specified by:
getMarketDataType
in classMarketDataName<Surface>
- 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<Surface>
- Returns:
- the unique name
-
-