Class InterpolatedNodalCurveDefinition.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>
-
- com.opengamma.strata.market.curve.InterpolatedNodalCurveDefinition.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<InterpolatedNodalCurveDefinition>
- Enclosing class:
- InterpolatedNodalCurveDefinition
public static final class InterpolatedNodalCurveDefinition.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>
The bean-builder forInterpolatedNodalCurveDefinition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatedNodalCurveDefinitionbuild()InterpolatedNodalCurveDefinition.BuilderdayCount(DayCount dayCount)Sets the day count, optional.InterpolatedNodalCurveDefinition.BuilderextrapolatorLeft(CurveExtrapolator extrapolatorLeft)Sets the extrapolator used to find points to the left of the leftmost point on the curve.InterpolatedNodalCurveDefinition.BuilderextrapolatorRight(CurveExtrapolator extrapolatorRight)Sets the extrapolator used to find points to the right of the rightmost point on the curve.Objectget(String propertyName)InterpolatedNodalCurveDefinition.Builderinterpolator(CurveInterpolator interpolator)Sets the interpolator used to find points on the curve.InterpolatedNodalCurveDefinition.Buildername(CurveName name)Sets the curve name.InterpolatedNodalCurveDefinition.Buildernodes(CurveNode... nodes)Sets thenodesproperty in the builder from an array of objects.InterpolatedNodalCurveDefinition.Buildernodes(List<? extends CurveNode> nodes)Sets the nodes in the curve.InterpolatedNodalCurveDefinition.Builderset(String propertyName, Object newValue)InterpolatedNodalCurveDefinition.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()InterpolatedNodalCurveDefinition.BuilderxValueType(ValueType xValueType)Sets the x-value type, providing meaning to the x-values of the curve.InterpolatedNodalCurveDefinition.BuilderyValueType(ValueType yValueType)Sets the y-value type, providing meaning to the y-values of the curve.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalCurveDefinition>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>
-
set
public InterpolatedNodalCurveDefinition.Builder set(String propertyName, Object newValue)
-
set
public InterpolatedNodalCurveDefinition.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalCurveDefinition>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalCurveDefinition>
-
build
public InterpolatedNodalCurveDefinition build()
-
name
public InterpolatedNodalCurveDefinition.Builder name(CurveName name)
Sets the curve name.- Parameters:
name- the new value, not null- Returns:
- this, for chaining, not null
-
xValueType
public InterpolatedNodalCurveDefinition.Builder xValueType(ValueType xValueType)
Sets the x-value type, providing meaning to the x-values of the curve.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.- Parameters:
xValueType- the new value, not null- Returns:
- this, for chaining, not null
-
yValueType
public InterpolatedNodalCurveDefinition.Builder yValueType(ValueType yValueType)
Sets the y-value type, providing meaning to the y-values of the curve.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.- Parameters:
yValueType- the new value, not null- Returns:
- this, for chaining, not null
-
dayCount
public InterpolatedNodalCurveDefinition.Builder dayCount(DayCount dayCount)
Sets the day count, optional.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.
- Parameters:
dayCount- the new value- Returns:
- this, for chaining, not null
-
nodes
public InterpolatedNodalCurveDefinition.Builder nodes(List<? extends CurveNode> nodes)
Sets the nodes in the curve.The nodes are used to find the par rates and calibrate the curve. There must be at least two nodes in the curve.
- Parameters:
nodes- the new value, not null- Returns:
- this, for chaining, not null
-
nodes
public InterpolatedNodalCurveDefinition.Builder nodes(CurveNode... nodes)
Sets thenodesproperty in the builder from an array of objects.- Parameters:
nodes- the new value, not null- Returns:
- this, for chaining, not null
-
interpolator
public InterpolatedNodalCurveDefinition.Builder interpolator(CurveInterpolator interpolator)
Sets the interpolator used to find points on the curve.- Parameters:
interpolator- the new value, not null- Returns:
- this, for chaining, not null
-
extrapolatorLeft
public InterpolatedNodalCurveDefinition.Builder extrapolatorLeft(CurveExtrapolator extrapolatorLeft)
Sets the extrapolator used to find points to the left of the leftmost point on the curve.- Parameters:
extrapolatorLeft- the new value, not null- Returns:
- this, for chaining, not null
-
extrapolatorRight
public InterpolatedNodalCurveDefinition.Builder extrapolatorRight(CurveExtrapolator extrapolatorRight)
Sets the extrapolator used to find points to the right of the rightmost point on the curve.- 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<InterpolatedNodalCurveDefinition>
-
-