Class DeformedSurface.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
-
- com.opengamma.strata.market.surface.DeformedSurface.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<DeformedSurface>
- Enclosing class:
- DeformedSurface
public static final class DeformedSurface.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
The bean-builder forDeformedSurface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeformedSurfacebuild()DeformedSurface.BuilderdeformationFunction(Function<DoublesPair,ValueDerivatives> deformationFunction)Sets the deformation function.Objectget(String propertyName)DeformedSurface.Buildermetadata(SurfaceMetadata metadata)Sets the surface metadata.DeformedSurface.BuilderoriginalSurface(Surface originalSurface)Sets the original surface.DeformedSurface.Builderset(String propertyName, Object newValue)DeformedSurface.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<DeformedSurface>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
-
set
public DeformedSurface.Builder set(String propertyName, Object newValue)
-
set
public DeformedSurface.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<DeformedSurface>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
-
build
public DeformedSurface build()
-
metadata
public DeformedSurface.Builder metadata(SurfaceMetadata metadata)
Sets the surface metadata.The metadata includes an optional list of parameter metadata.
- Parameters:
metadata- the new value, not null- Returns:
- this, for chaining, not null
-
originalSurface
public DeformedSurface.Builder originalSurface(Surface originalSurface)
Sets the original surface.The underlying surface which receives the deformation defined by
deformationFunction.- Parameters:
originalSurface- the new value, not null- Returns:
- this, for chaining, not null
-
deformationFunction
public DeformedSurface.Builder deformationFunction(Function<DoublesPair,ValueDerivatives> deformationFunction)
Sets the deformation function.The deformation to the original surface is define by this function. The function takes
DoublesPairof x-value and y-value, then returnsValueDerivativeswhich contains z-value for the specified x,y values, and node sensitivities to the original surface.- Parameters:
deformationFunction- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<DeformedSurface>
-
-