public final class DefaultSurfaceMetadataBuilder extends Object
This is created using DefaultSurfaceMetadata.builder().
| Modifier and Type | Method and Description |
|---|---|
<T> DefaultSurfaceMetadataBuilder |
addInfo(SurfaceInfoType<T> type,
T value)
Adds a single piece of additional information.
|
DefaultSurfaceMetadata |
build()
Builds the metadata instance.
|
DefaultSurfaceMetadataBuilder |
clearParameterMetadata()
Clears the parameter-level metadata.
|
DefaultSurfaceMetadataBuilder |
dayCount(DayCount dayCount)
Sets the day count.
|
DefaultSurfaceMetadataBuilder |
parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
Sets the parameter-level metadata.
|
DefaultSurfaceMetadataBuilder |
parameterMetadata(ParameterMetadata... parameterMetadata)
Sets the parameter-level metadata.
|
DefaultSurfaceMetadataBuilder |
surfaceName(String surfaceName)
Sets the surface name.
|
DefaultSurfaceMetadataBuilder |
surfaceName(SurfaceName surfaceName)
Sets the surface name.
|
DefaultSurfaceMetadataBuilder |
xValueType(ValueType xValueType)
Sets the x-value type, providing meaning to the x-values of the surface.
|
DefaultSurfaceMetadataBuilder |
yValueType(ValueType yValueType)
Sets the y-value type, providing meaning to the y-values of the surface.
|
DefaultSurfaceMetadataBuilder |
zValueType(ValueType zValueType)
Sets the z-value type, providing meaning to the z-values of the surface.
|
public DefaultSurfaceMetadataBuilder surfaceName(String surfaceName)
surfaceName - the surface namepublic DefaultSurfaceMetadataBuilder surfaceName(SurfaceName surfaceName)
surfaceName - the surface namepublic DefaultSurfaceMetadataBuilder xValueType(ValueType xValueType)
This type provides meaning to the x-values.
If using the builder, this defaults to ValueType.UNKNOWN.
xValueType - the x-value typepublic DefaultSurfaceMetadataBuilder yValueType(ValueType yValueType)
This type provides meaning to the y-values.
If using the builder, this defaults to ValueType.UNKNOWN.
yValueType - the y-value typepublic DefaultSurfaceMetadataBuilder zValueType(ValueType zValueType)
This type provides meaning to the z-values.
If using the builder, this defaults to ValueType.UNKNOWN.
zValueType - the z-value typepublic DefaultSurfaceMetadataBuilder dayCount(DayCount dayCount)
This stores the day count in the additional information map using the
key SurfaceInfoType.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 <T> DefaultSurfaceMetadataBuilder addInfo(SurfaceInfoType<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 DefaultSurfaceMetadataBuilder parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
The parameter metadata must match the number of parameters on the surface. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultSurfaceMetadataBuilder parameterMetadata(ParameterMetadata... parameterMetadata)
The parameter metadata must match the number of parameters on the surface. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultSurfaceMetadataBuilder clearParameterMetadata()
The existing parameter-level metadata will be removed.
public DefaultSurfaceMetadata build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.