class LegalEntityCurveGroup implements CurveGroup, ImmutableBean, Serializable {

  @Override
  public Stream<Curve> stream() {
    return Stream.concat(repoCurves.values().stream(), issuerCurves.values().stream());
  }

  private  LegalEntityCurveGroup(
      CurveGroupName name,
      Map<Pair<RepoGroup, Currency>, Curve> repoCurves,
      Map<Pair<LegalEntityGroup, Currency>, Curve> issuerCurves);

}