Interface CurveGroup
-
- All Known Implementing Classes:
LegalEntityCurveGroup,RatesCurveGroup
public interface CurveGroupA group of curves.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.
In Strata v2, this type was converted to an interface. If migrating, change your code to
RatesCurveGroup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Curve>findCurve(CurveName name)Finds the curve with the specified name.CurveGroupNamegetName()Gets the name of the curve group.Stream<Curve>stream()Returns a stream of all curves in the group.
-
-
-
Method Detail
-
getName
CurveGroupName getName()
Gets the name of the curve group.- Returns:
- the group name
-
findCurve
Optional<Curve> findCurve(CurveName name)
Finds the curve with the specified name.If the curve cannot be found, empty is returned.
- Parameters:
name- the curve name- Returns:
- the curve, empty if not found
-
-