Interface StubValue.StubValueBuilder

All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject, com.rosetta.model.lib.RosettaModelObjectBuilder, StubValue
All Known Implementing Classes:
StubValue.StubValueBuilderImpl
Enclosing interface:
StubValue

public static interface StubValue.StubValueBuilder extends StubValue, com.rosetta.model.lib.RosettaModelObjectBuilder
Builder Interface
  • Method Details

    • getOrCreateFloatingRate

      StubFloatingRate.StubFloatingRateBuilder getOrCreateFloatingRate(int index)
    • getFloatingRate

      List<? extends StubFloatingRate.StubFloatingRateBuilder> getFloatingRate()
      Description copied from interface: StubValue
      The rates to be applied to the initial or final stub may be the linear interpolation of two different rates. While the majority of the time, the rate indices will be the same as that specified in the stream and only the tenor itself will be different, it is possible to specift two different rates. For example, a 2 month stub period may use the linear interpolation of a 1 month and 3 month rate. The different rates would be specified in this component. Note that a maximum of two rates can be specified. If a stub period uses the same floating rate index, including tenor, as the regular calculation periods then this should not be specified again within this component, i.e. the stub calculation period amount component may not need to be specified even if there is an initial or final stub period. If a stub period uses a different floating rate index compared to the regular calculation periods then this should be specified within this component. If specified here, they are likely to have id attributes, allowing them to be referenced from within the cashflows component.
      Specified by:
      getFloatingRate in interface StubValue
    • getOrCreateStubAmount

      Money.MoneyBuilder getOrCreateStubAmount()
    • getStubAmount

      Money.MoneyBuilder getStubAmount()
      Description copied from interface: StubValue
      An actual amount to apply for the initial or final stub period may have been agreed between the two parties. If an actual stub amount has been agreed then it would be included in this component.
      Specified by:
      getStubAmount in interface StubValue
    • addFloatingRate

      StubValue.StubValueBuilder addFloatingRate(StubFloatingRate floatingRate)
    • addFloatingRate

      StubValue.StubValueBuilder addFloatingRate(StubFloatingRate floatingRate, int idx)
    • addFloatingRate

      StubValue.StubValueBuilder addFloatingRate(List<? extends StubFloatingRate> floatingRate)
    • setFloatingRate

      StubValue.StubValueBuilder setFloatingRate(List<? extends StubFloatingRate> floatingRate)
    • setStubRate

      StubValue.StubValueBuilder setStubRate(BigDecimal stubRate)
    • setStubAmount

      StubValue.StubValueBuilder setStubAmount(Money stubAmount)
    • process

      default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.BuilderProcessor processor)
      Specified by:
      process in interface com.rosetta.model.lib.RosettaModelObjectBuilder
    • prune

      Specified by:
      prune in interface com.rosetta.model.lib.RosettaModelObjectBuilder