Package com.opengamma.strata.loader.csv
Interface SensitivityCsvInfoSupplier
-
public interface SensitivityCsvInfoSupplier
Resolves additional information when writing sensitivity CSV files.This allows additional CSV columns to be written.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default List<String>
headers(CurveSensitivities curveSens)
Returns the list of additional headers this supplier provides.static SensitivityCsvInfoSupplier
standard()
Obtains an instance that uses the standard set of reference data.default List<String>
values(List<String> additionalHeaders, CurveSensitivities curveSens, CurrencyParameterSensitivity paramSens)
Gets the values associated with the headers.
-
-
-
Method Detail
-
standard
static SensitivityCsvInfoSupplier standard()
Obtains an instance that uses the standard set of reference data.- Returns:
- the loader
-
headers
default List<String> headers(CurveSensitivities curveSens)
Returns the list of additional headers this supplier provides.- Parameters:
curveSens
- the curve sensitivities to output- Returns:
- the list of additional headers
-
values
default List<String> values(List<String> additionalHeaders, CurveSensitivities curveSens, CurrencyParameterSensitivity paramSens)
Gets the values associated with the headers.This must return a list of the same size as
additionalHeaders
where each element in the list is the value for the matching header.This will be invoked once for each
CurrencyParameterSensitivity
in theCurveSensitivities
.- Parameters:
additionalHeaders
- the additional headerscurveSens
- the curve sensitivities to outputparamSens
- the parameter sensitivities to output- Returns:
- the value for the specified header, not null
-
-