Class PiecewiseCurve.Builder
java.lang.Object
net.finmath.marketdata.model.curves.CurveInterpolation.Builder
net.finmath.marketdata.model.curves.PiecewiseCurve.Builder
- All Implemented Interfaces:
CurveBuilder
- Enclosing class:
PiecewiseCurve
public static class PiecewiseCurve.Builder
extends CurveInterpolation.Builder
implements CurveBuilder
A builder (following the builder pattern) for PiecewiseCurve objects.
Allows to successively construct a curve object by adding points to its base points.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(PiecewiseCurve piecewiseCurve) Create a CurveBuilder from a given piecewiseCurve -
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 piecewiseCurve- Parameters:
piecewiseCurve- The piecewise 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.
-