Class InterpolatedNodalSurface.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalSurface>
-
- com.opengamma.strata.market.surface.InterpolatedNodalSurface.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<InterpolatedNodalSurface>
- Enclosing class:
- InterpolatedNodalSurface
public static final class InterpolatedNodalSurface.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalSurface>
The bean-builder forInterpolatedNodalSurface
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatedNodalSurface
build()
Object
get(String propertyName)
InterpolatedNodalSurface.Builder
interpolator(SurfaceInterpolator interpolator)
Sets the underlying interpolator.InterpolatedNodalSurface.Builder
metadata(SurfaceMetadata metadata)
Sets the surface metadata.InterpolatedNodalSurface.Builder
set(String propertyName, Object newValue)
InterpolatedNodalSurface.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
InterpolatedNodalSurface.Builder
xValues(DoubleArray xValues)
Sets the array of x-values, one for each point.InterpolatedNodalSurface.Builder
yValues(DoubleArray yValues)
Sets the array of y-values, one for each point.InterpolatedNodalSurface.Builder
zValues(DoubleArray zValues)
Sets the array of z-values, one for each point.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalSurface>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalSurface>
-
set
public InterpolatedNodalSurface.Builder set(String propertyName, Object newValue)
-
set
public InterpolatedNodalSurface.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<InterpolatedNodalSurface>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalSurface>
-
build
public InterpolatedNodalSurface build()
-
metadata
public InterpolatedNodalSurface.Builder metadata(SurfaceMetadata metadata)
Sets the surface 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 surface.
- Parameters:
metadata
- the new value, not null- Returns:
- this, for chaining, not null
-
xValues
public InterpolatedNodalSurface.Builder xValues(DoubleArray xValues)
Sets the array of x-values, one for each point.This array will contains at least two elements.
- Parameters:
xValues
- the new value, not null- Returns:
- this, for chaining, not null
-
yValues
public InterpolatedNodalSurface.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
-
zValues
public InterpolatedNodalSurface.Builder zValues(DoubleArray zValues)
Sets the array of z-values, one for each point.This array will contains at least two elements and be of the same length as x-values.
- Parameters:
zValues
- the new value, not null- Returns:
- this, for chaining, not null
-
interpolator
public InterpolatedNodalSurface.Builder interpolator(SurfaceInterpolator interpolator)
Sets the underlying interpolator.- Parameters:
interpolator
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<InterpolatedNodalSurface>
-
-