All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opengamma.strata.product.etd.EtdContractCode Maven / Gradle / Ivy

There is a newer version: 2.12.56
Show newest version
/*
 * Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.product.etd;

import org.joda.convert.FromString;

import com.opengamma.strata.collect.TypedString;

/**
 * The contract code for an Exchange Traded Derivative (ETD).
 * 

* This is the code supplied by the exchange for use in clearing and margining, such as in SPAN. */ public final class EtdContractCode extends TypedString { /** Serialization version. */ private static final long serialVersionUID = 1L; //------------------------------------------------------------------------- /** * Obtains an instance from the specified name. *

* The name may contain any character, but must not be empty. * * @param name the name * @return a type instance with the specified name */ @FromString public static EtdContractCode of(String name) { return new EtdContractCode(name); } /** * Creates an instance. * * @param name the name */ private EtdContractCode(String name) { super(name); } // resolve after deserialization private Object readResolve() { return of(getName()); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy