public static final class InterpolatedNodalCurveDefinition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>
InterpolatedNodalCurveDefinition.| Modifier and Type | Method and Description |
|---|---|
InterpolatedNodalCurveDefinition |
build() |
InterpolatedNodalCurveDefinition.Builder |
compoundingPerYear(Integer compoundingPerYear)
Sets the compounding per year, optional.
|
InterpolatedNodalCurveDefinition.Builder |
dayCount(DayCount dayCount)
Sets the day count, optional.
|
InterpolatedNodalCurveDefinition.Builder |
extrapolatorLeft(CurveExtrapolator extrapolatorLeft)
Sets the extrapolator used to find points to the left of the leftmost point on the curve.
|
InterpolatedNodalCurveDefinition.Builder |
extrapolatorRight(CurveExtrapolator extrapolatorRight)
Sets the extrapolator used to find points to the right of the rightmost point on the curve.
|
Object |
get(String propertyName) |
InterpolatedNodalCurveDefinition.Builder |
interpolator(CurveInterpolator interpolator)
Sets the interpolator used to find points on the curve.
|
InterpolatedNodalCurveDefinition.Builder |
name(CurveName name)
Sets the curve name.
|
InterpolatedNodalCurveDefinition.Builder |
nodes(CurveNode... nodes)
Sets the
nodes property in the builder
from an array of objects. |
InterpolatedNodalCurveDefinition.Builder |
nodes(List<? extends CurveNode> nodes)
Sets the nodes in the curve.
|
InterpolatedNodalCurveDefinition.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
InterpolatedNodalCurveDefinition.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
InterpolatedNodalCurveDefinition.Builder |
xValueType(ValueType xValueType)
Sets the x-value type, providing meaning to the x-values of the curve.
|
InterpolatedNodalCurveDefinition.Builder |
yValueType(ValueType yValueType)
Sets the y-value type, providing meaning to the y-values of the curve.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<InterpolatedNodalCurveDefinition>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>public InterpolatedNodalCurveDefinition.Builder set(String propertyName, Object newValue)
public InterpolatedNodalCurveDefinition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<InterpolatedNodalCurveDefinition>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>public InterpolatedNodalCurveDefinition build()
public InterpolatedNodalCurveDefinition.Builder name(CurveName name)
name - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder xValueType(ValueType xValueType)
This type provides meaning to the x-values. For example, the x-value might
represent a year fraction, as represented using ValueType.YEAR_FRACTION.
If using the builder, this defaults to ValueType.UNKNOWN.
xValueType - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder yValueType(ValueType yValueType)
This type provides meaning to the y-values. For example, the y-value might
represent a zero rate, as represented using ValueType.ZERO_RATE.
If using the builder, this defaults to ValueType.UNKNOWN.
yValueType - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder dayCount(DayCount dayCount)
If the x-value of the curve represents time as a year fraction, the day count can be specified to define how the year fraction is calculated.
dayCount - the new valuepublic InterpolatedNodalCurveDefinition.Builder compoundingPerYear(Integer compoundingPerYear)
The number of compounding periods per year of the zero-coupon rate. This is used for a zero rate periodically-compounded curve.
compoundingPerYear - the new valuepublic InterpolatedNodalCurveDefinition.Builder nodes(List<? extends CurveNode> nodes)
The nodes are used to find the par rates and calibrate the curve. There must be at least two nodes in the curve.
nodes - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder nodes(CurveNode... nodes)
nodes property in the builder
from an array of objects.nodes - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder interpolator(CurveInterpolator interpolator)
interpolator - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder extrapolatorLeft(CurveExtrapolator extrapolatorLeft)
extrapolatorLeft - the new value, not nullpublic InterpolatedNodalCurveDefinition.Builder extrapolatorRight(CurveExtrapolator extrapolatorRight)
extrapolatorRight - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.