public final class LegalEntityCurveGroup extends Object implements CurveGroup, org.joda.beans.ImmutableBean, Serializable
This is used to hold a group of related curves, typically forming a logical set. It is often used to hold the results of a curve calibration.
Curve groups can also be created from a set of existing curves.
| Modifier and Type | Class and Description |
|---|---|
static class |
LegalEntityCurveGroup.Builder
The bean-builder for
LegalEntityCurveGroup. |
static class |
LegalEntityCurveGroup.Meta
The meta-bean for
LegalEntityCurveGroup. |
| Modifier and Type | Method and Description |
|---|---|
static LegalEntityCurveGroup.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Optional<Curve> |
findCurve(CurveName name)
Finds the curve with the specified name.
|
Optional<Curve> |
findIssuerCurve(LegalEntityGroup legalEntityGroup,
Currency currency)
Finds the issuer curve for the legal entity group and currency if there is one in the group.
|
Optional<Curve> |
findRepoCurve(RepoGroup repoGroup,
Currency currency)
Finds the repo curve for the repo group and currency if there is one in the group.
|
ImmutableMap<Pair<LegalEntityGroup,Currency>,Curve> |
getIssuerCurves()
Gets the issuer curves in the curve group, keyed by legal entity group and currency.
|
CurveGroupName |
getName()
Gets the name of the curve group.
|
ImmutableMap<Pair<RepoGroup,Currency>,Curve> |
getRepoCurves()
Gets the repo curves in the curve group, keyed by repo group and currency.
|
int |
hashCode() |
Stream<Curve> |
issuerCurveStream()
Returns a stream of all issuer curves in the group.
|
static LegalEntityCurveGroup.Meta |
meta()
The meta-bean for
LegalEntityCurveGroup. |
LegalEntityCurveGroup.Meta |
metaBean() |
static LegalEntityCurveGroup |
of(CurveGroupName name,
Map<Pair<RepoGroup,Currency>,Curve> repoCurves,
Map<Pair<LegalEntityGroup,Currency>,Curve> issuerCurves)
Returns a curve group containing the specified curves.
|
Stream<Curve> |
repoCurveStream()
Returns a stream of all repo curves in the group.
|
Stream<Curve> |
stream()
Returns a stream of all curves in the group.
|
LegalEntityCurveGroup.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static LegalEntityCurveGroup of(CurveGroupName name, Map<Pair<RepoGroup,Currency>,Curve> repoCurves, Map<Pair<LegalEntityGroup,Currency>,Curve> issuerCurves)
name - the name of the curve grouprepoCurves - the repo curves, keyed by pair of repo group and currencyissuerCurves - the issuer curves, keyed by pair of legal entity group and currencypublic Optional<Curve> findCurve(CurveName name)
If the curve cannot be found, empty is returned.
findCurve in interface CurveGroupname - the curve namepublic Optional<Curve> findRepoCurve(RepoGroup repoGroup, Currency currency)
If the curve is not found, optional empty is returned.
repoGroup - the repo groupcurrency - the currencypublic Optional<Curve> findIssuerCurve(LegalEntityGroup legalEntityGroup, Currency currency)
If the curve is not found, optional empty is returned.
legalEntityGroup - the legal entity groupcurrency - the currencypublic Stream<Curve> stream()
stream in interface CurveGrouppublic Stream<Curve> repoCurveStream()
public Stream<Curve> issuerCurveStream()
public static LegalEntityCurveGroup.Meta meta()
LegalEntityCurveGroup.public static LegalEntityCurveGroup.Builder builder()
public LegalEntityCurveGroup.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic CurveGroupName getName()
getName in interface CurveGrouppublic ImmutableMap<Pair<RepoGroup,Currency>,Curve> getRepoCurves()
public ImmutableMap<Pair<LegalEntityGroup,Currency>,Curve> getIssuerCurves()
public LegalEntityCurveGroup.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.