Class InterpolatedNodalCurve.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>
-
- com.opengamma.strata.market.curve.InterpolatedNodalCurve.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<InterpolatedNodalCurve>
- Enclosing class:
- InterpolatedNodalCurve
public static final class InterpolatedNodalCurve.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>
The bean-builder forInterpolatedNodalCurve.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatedNodalCurvebuild()InterpolatedNodalCurve.BuilderextrapolatorLeft(CurveExtrapolator extrapolatorLeft)Sets the extrapolator for x-values on the left, defaulted to 'Flat".InterpolatedNodalCurve.BuilderextrapolatorRight(CurveExtrapolator extrapolatorRight)Sets the extrapolator for x-values on the right, defaulted to 'Flat".Objectget(String propertyName)InterpolatedNodalCurve.Builderinterpolator(CurveInterpolator interpolator)Sets the interpolator.InterpolatedNodalCurve.Buildermetadata(CurveMetadata metadata)Sets the curve metadata.InterpolatedNodalCurve.Builderset(String propertyName, Object newValue)InterpolatedNodalCurve.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()InterpolatedNodalCurve.BuilderxValues(DoubleArray xValues)Sets the array of x-values, one for each point.InterpolatedNodalCurve.BuilderyValues(DoubleArray yValues)Sets the array of y-values, one for each point.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalCurve>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>
-
set
public InterpolatedNodalCurve.Builder set(String propertyName, Object newValue)
-
set
public InterpolatedNodalCurve.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalCurve>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>
-
build
public InterpolatedNodalCurve build()
-
metadata
public InterpolatedNodalCurve.Builder metadata(CurveMetadata metadata)
Sets the curve metadata.The metadata includes an optional list of parameter metadata. If present, the size of the parameter metadata list will match the number of parameters of this curve.
- Parameters:
metadata- the new value, not null- Returns:
- this, for chaining, not null
-
xValues
public InterpolatedNodalCurve.Builder xValues(DoubleArray xValues)
Sets the array of x-values, one for each point.This array will contains at least two elements and be of the same length as y-values.
- Parameters:
xValues- the new value, not null- Returns:
- this, for chaining, not null
-
yValues
public InterpolatedNodalCurve.Builder yValues(DoubleArray yValues)
Sets the array of y-values, one for each point.This array will contains at least two elements and be of the same length as x-values.
- Parameters:
yValues- the new value, not null- Returns:
- this, for chaining, not null
-
interpolator
public InterpolatedNodalCurve.Builder interpolator(CurveInterpolator interpolator)
Sets the interpolator. This is used for x-values between the smallest and largest known x-value.- Parameters:
interpolator- the new value, not null- Returns:
- this, for chaining, not null
-
extrapolatorLeft
public InterpolatedNodalCurve.Builder extrapolatorLeft(CurveExtrapolator extrapolatorLeft)
Sets the extrapolator for x-values on the left, defaulted to 'Flat". This is used for x-values smaller than the smallest known x-value.- Parameters:
extrapolatorLeft- the new value, not null- Returns:
- this, for chaining, not null
-
extrapolatorRight
public InterpolatedNodalCurve.Builder extrapolatorRight(CurveExtrapolator extrapolatorRight)
Sets the extrapolator for x-values on the right, defaulted to 'Flat". This is used for x-values larger than the largest known x-value.- Parameters:
extrapolatorRight- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurve>
-
-