Class RootFinderConfig
- java.lang.Object
-
- com.opengamma.strata.measure.curve.RootFinderConfig
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class RootFinderConfig extends Object implements org.joda.beans.ImmutableBean, Serializable
Configuration for the root finder used when calibrating curves.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RootFinderConfig.Builder
The bean-builder forRootFinderConfig
.static class
RootFinderConfig.Meta
The meta-bean forRootFinderConfig
.
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_ABSOLUTE_TOLERANCE
The default absolute tolerance for the root finder.static int
DEFAULT_MAXIMUM_STEPS
The default maximum number of steps for the root finder.static double
DEFAULT_RELATIVE_TOLERANCE
The default relative tolerance for the root finder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RootFinderConfig.Builder
builder()
Returns a builder used to create an instance of the bean.boolean
equals(Object obj)
double
getAbsoluteTolerance()
Gets the absolute tolerance for the root finder.int
getMaximumSteps()
Gets the maximum number of steps for the root finder.double
getRelativeTolerance()
Gets the relative tolerance for the root finder.int
hashCode()
static RootFinderConfig.Meta
meta()
The meta-bean forRootFinderConfig
.RootFinderConfig.Meta
metaBean()
static RootFinderConfig
standard()
Returns standard root finder configuration, using theDEFAULT
constants from this class.RootFinderConfig.Builder
toBuilder()
Returns a builder that allows this bean to be mutated.String
toString()
-
-
-
Field Detail
-
DEFAULT_ABSOLUTE_TOLERANCE
public static final double DEFAULT_ABSOLUTE_TOLERANCE
The default absolute tolerance for the root finder.- See Also:
- Constant Field Values
-
DEFAULT_RELATIVE_TOLERANCE
public static final double DEFAULT_RELATIVE_TOLERANCE
The default relative tolerance for the root finder.- See Also:
- Constant Field Values
-
DEFAULT_MAXIMUM_STEPS
public static final int DEFAULT_MAXIMUM_STEPS
The default maximum number of steps for the root finder.- See Also:
- Constant Field Values
-
-
Method Detail
-
standard
public static RootFinderConfig standard()
Returns standard root finder configuration, using theDEFAULT
constants from this class.- Returns:
- the standard root finder configuration, using the
DEFAULT
constants from this class
-
meta
public static RootFinderConfig.Meta meta()
The meta-bean forRootFinderConfig
.- Returns:
- the meta-bean, not null
-
builder
public static RootFinderConfig.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public RootFinderConfig.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getAbsoluteTolerance
public double getAbsoluteTolerance()
Gets the absolute tolerance for the root finder.- Returns:
- the value of the property
-
getRelativeTolerance
public double getRelativeTolerance()
Gets the relative tolerance for the root finder.- Returns:
- the value of the property
-
getMaximumSteps
public int getMaximumSteps()
Gets the maximum number of steps for the root finder.- Returns:
- the value of the property
-
toBuilder
public RootFinderConfig.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-