Class PointShiftsBuilder
- java.lang.Object
-
- com.opengamma.strata.market.param.PointShiftsBuilder
-
public final class PointShiftsBuilder extends Object
Mutable builder for building instances ofPointShifts.This is created via
PointShifts.builder(ShiftType).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointShiftsBuilderaddShift(int scenarioIndex, Object nodeIdentifier, double shiftAmount)Adds a shift for a parameter to the builder.PointShiftsBuilderaddShifts(int scenarioIndex, Map<?,Double> shiftMap)Adds multiple shifts to the builder.PointShiftsbuild()Returns an instance ofPointShiftsbuilt from the data in this builder.
-
-
-
Method Detail
-
addShift
public PointShiftsBuilder addShift(int scenarioIndex, Object nodeIdentifier, double shiftAmount)
Adds a shift for a parameter to the builder.- Parameters:
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 shift- Returns:
- this builder
-
addShifts
public PointShiftsBuilder addShifts(int scenarioIndex, Map<?,Double> shiftMap)
Adds multiple shifts to the builder.- Parameters:
scenarioIndex- the index of the scenario containing the shiftsshiftMap- the shift amounts, keyed by the identifier of the node to which they should be applied- Returns:
- this builder
-
build
public PointShifts build()
Returns an instance ofPointShiftsbuilt from the data in this builder.- Returns:
- an instance of
PointShiftsbuilt from the data in this builder
-
-