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