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

com.opengamma.strata.market.curve.RepoGroup Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.market.curve;

import org.joda.convert.FromString;

import com.opengamma.strata.collect.TypedString;

/**
 * Group used to identify a related set of repo curves when pricing bonds.
 * 

* This class was previously called {@code BondGroup}. * It was renamed in version 1.1 of Strata to allow {@code LegalEntityDiscountingProvider} * to be used for pricing bills as well as bonds. */ public final class RepoGroup extends TypedString { /** Serialization version. */ private static final long serialVersionUID = 1L; //------------------------------------------------------------------------- /** * Obtains an instance from the specified name. *

* Group names may contain any character, but must not be empty. * * @param name the group name * @return a group with the specified String */ @FromString public static RepoGroup of(String name) { return new RepoGroup(name); } /** * Creates an instance. * * @param name the group name */ RepoGroup(String name) { super(name); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy