Package com.opengamma.strata.product.etd
Class EtdContractGroupCode
- java.lang.Object
-
- com.opengamma.strata.collect.TypedString<EtdContractGroupCode>
-
- com.opengamma.strata.product.etd.EtdContractGroupCode
-
- All Implemented Interfaces:
Named
,Serializable
,Comparable<EtdContractGroupCode>
public final class EtdContractGroupCode extends TypedString<EtdContractGroupCode>
The code for a group of ETD contracts, as defined an exchange.This is used to group similar ETD contracts together for the purpose of allocating risk.
This code is unique within, and defined by, an exchange. A unique identifier is formed when this code is combined with an
ExchangeId
, seeEtdContractGroupId
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EtdContractGroupCode
of(String name)
Obtains an instance from the specified name.
-
-
-
Method Detail
-
of
public static EtdContractGroupCode of(String name)
Obtains an instance from the specified name.The name may contain any character, but must not be empty.
- Parameters:
name
- the name- Returns:
- a type instance with the specified name
-
-