public final class PointShiftsBuilder extends Object
PointShifts.
This is created via PointShifts.builder(ShiftType).
| Modifier and Type | Method and Description |
|---|---|
PointShiftsBuilder |
addShift(int scenarioIndex,
Object nodeIdentifier,
double shiftAmount)
Adds a shift for a parameter to the builder.
|
PointShiftsBuilder |
addShifts(int scenarioIndex,
Map<?,Double> shiftMap)
Adds multiple shifts to the builder.
|
PointShifts |
build()
Returns an instance of
PointShifts built from the data in this builder. |
public PointShiftsBuilder addShift(int scenarioIndex, Object nodeIdentifier, double shiftAmount)
scenarioIndex - the index of the scenario containing the shiftnodeIdentifier - the identifier of the node to which the shift should be appliedshiftAmount - the size of the shiftpublic PointShiftsBuilder addShifts(int scenarioIndex, Map<?,Double> shiftMap)
scenarioIndex - the index of the scenario containing the shiftsshiftMap - the shift amounts, keyed by the identifier of the node to which they should be appliedpublic PointShifts build()
PointShifts built from the data in this builder.PointShifts built from the data in this builderCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.