Class ConstantNodalCurve.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ConstantNodalCurve>
-
- com.opengamma.strata.market.curve.ConstantNodalCurve.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ConstantNodalCurve>
- Enclosing class:
- ConstantNodalCurve
public static final class ConstantNodalCurve.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ConstantNodalCurve>
The bean-builder forConstantNodalCurve
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstantNodalCurve
build()
Object
get(String propertyName)
ConstantNodalCurve.Builder
metadata(CurveMetadata metadata)
Sets the curve metadata.ConstantNodalCurve.Builder
set(String propertyName, Object newValue)
ConstantNodalCurve.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
ConstantNodalCurve.Builder
xValue(double xValue)
Sets the single x-value.ConstantNodalCurve.Builder
yValue(double yValue)
Sets the single y-value.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ConstantNodalCurve>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ConstantNodalCurve>
-
set
public ConstantNodalCurve.Builder set(String propertyName, Object newValue)
-
set
public ConstantNodalCurve.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ConstantNodalCurve>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ConstantNodalCurve>
-
build
public ConstantNodalCurve build()
-
metadata
public ConstantNodalCurve.Builder metadata(CurveMetadata metadata)
Sets the curve metadata.The metadata will have a single parameter metadata.
- Parameters:
metadata
- the new value, not null- Returns:
- this, for chaining, not null
-
xValue
public ConstantNodalCurve.Builder xValue(double xValue)
Sets the single x-value.- Parameters:
xValue
- the new value, not null- Returns:
- this, for chaining, not null
-
yValue
public ConstantNodalCurve.Builder yValue(double yValue)
Sets the single y-value.- Parameters:
yValue
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ConstantNodalCurve>
-
-