Class SeasonalCurve.Builder
java.lang.Object
net.finmath.marketdata.model.curves.CurveInterpolation.Builder
net.finmath.marketdata.model.curves.SeasonalCurve.Builder
- All Implemented Interfaces:
CurveBuilder
- Enclosing class:
SeasonalCurve
public static class SeasonalCurve.Builder
extends CurveInterpolation.Builder
implements CurveBuilder
A builder (following the builder pattern) for SeasonalCurve objects.
Allows to successively construct a curve object by adding points to its base points.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(SeasonalCurve seasonalCurve) Create a CurveBuilder from a given seasonalCurve. -
Method Summary
Methods inherited from class CurveInterpolation.Builder
addPoint, setExtrapolationMethod, setInterpolationEntity, setInterpolationMethodMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CurveBuilder
addPoint
-
Constructor Details
-
Builder
Create a CurveBuilder from a given seasonalCurve.- Parameters:
seasonalCurve- The seasonal curve from which to copy the fixed part upon build().- Throws:
CloneNotSupportedException- Thrown, when the base curve could not be cloned.
-
-
Method Details
-
build
Description copied from interface:CurveBuilderBuild the curve. The method returns the curve object. The builder cannot be used to build another curve. Use clone instead.- Specified by:
buildin interfaceCurveBuilder- Overrides:
buildin classCurveInterpolation.Builder- Returns:
- The curve according to the specification.
- Throws:
CloneNotSupportedException- Thrown if the curve could not be build (likely due to a template throwingCloneNotSupportedException.
-