public final class DefaultCurveMetadataBuilder extends Object
This is created using DefaultCurveMetadata.builder().
| Modifier and Type | Method and Description |
|---|---|
<T> DefaultCurveMetadataBuilder |
addInfo(CurveInfoType<T> type,
T value)
Adds a single piece of additional information.
|
DefaultCurveMetadata |
build()
Builds the metadata instance.
|
DefaultCurveMetadataBuilder |
clearParameterMetadata()
Clears the parameter-level metadata.
|
DefaultCurveMetadataBuilder |
curveName(CurveName curveName)
Sets the curve name.
|
DefaultCurveMetadataBuilder |
curveName(String curveName)
Sets the curve name.
|
DefaultCurveMetadataBuilder |
dayCount(DayCount dayCount)
Sets the day count.
|
DefaultCurveMetadataBuilder |
jacobian(JacobianCalibrationMatrix jacobian)
Sets the calibration information.
|
DefaultCurveMetadataBuilder |
parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
Sets the parameter-level metadata.
|
DefaultCurveMetadataBuilder |
parameterMetadata(ParameterMetadata... parameterMetadata)
Sets the parameter-level metadata.
|
DefaultCurveMetadataBuilder |
xValueType(ValueType xValueType)
Sets the x-value type, providing meaning to the x-values of the curve.
|
DefaultCurveMetadataBuilder |
yValueType(ValueType yValueType)
Sets the y-value type, providing meaning to the y-values of the curve.
|
public DefaultCurveMetadataBuilder curveName(String curveName)
curveName - the curve namepublic DefaultCurveMetadataBuilder curveName(CurveName curveName)
curveName - the curve namepublic DefaultCurveMetadataBuilder xValueType(ValueType xValueType)
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.
xValueType - the x-value typepublic DefaultCurveMetadataBuilder yValueType(ValueType yValueType)
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.
yValueType - the y-value typepublic DefaultCurveMetadataBuilder dayCount(DayCount dayCount)
This stores the day count in the additional information map using the
key CurveInfoType.DAY_COUNT.
This is stored in the additional information map using Map.put semantics,
removing the key if the day count is null.
dayCount - the day count, may be nullpublic DefaultCurveMetadataBuilder jacobian(JacobianCalibrationMatrix jacobian)
This stores the calibration information in the additional information map
using the key CurveInfoType.JACOBIAN.
This is stored in the additional information map using Map.put semantics,
removing the key if the jacobian is null.
jacobian - the calibration information, may be nullpublic <T> DefaultCurveMetadataBuilder addInfo(CurveInfoType<T> type, T value)
This is stored in the additional information map using Map.put semantics,
removing the key if the instance is null.
T - the type of the infotype - the type to store undervalue - the value to store, may be nullpublic DefaultCurveMetadataBuilder parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
The parameter metadata must match the number of parameters on the curve. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultCurveMetadataBuilder parameterMetadata(ParameterMetadata... parameterMetadata)
The parameter metadata must match the number of parameters on the curve. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultCurveMetadataBuilder clearParameterMetadata()
The existing parameter-level metadata will be removed.
public DefaultCurveMetadata build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.