Package cdm.product.asset
Class StubValue.StubValueBuilderImpl
java.lang.Object
cdm.product.asset.StubValue.StubValueBuilderImpl
- All Implemented Interfaces:
StubValue,StubValue.StubValueBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
StubValue
public static class StubValue.StubValueBuilderImpl
extends Object
implements StubValue.StubValueBuilder
Builder Implementation of StubValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.product.asset.StubValue
StubValue.StubValueBuilder, StubValue.StubValueBuilderImpl, StubValue.StubValueImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<StubFloatingRate.StubFloatingRateBuilder> protected Money.MoneyBuilderprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFloatingRate(StubFloatingRate _floatingRate) addFloatingRate(StubFloatingRate _floatingRate, int idx) addFloatingRate(List<? extends StubFloatingRate> floatingRates) build()Build MethodsbooleanList<? extends StubFloatingRate.StubFloatingRateBuilder> The rates to be applied to the initial or final stub may be the linear interpolation of two different rates.getOrCreateFloatingRate(int index) An actual amount to apply for the initial or final stub period may have been agreed between the two parties.An actual rate to apply for the initial or final stub period may have been agreed between the principal parties (in a similar way to how an initial rate may have been agreed for the first regular period).booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setFloatingRate(List<? extends StubFloatingRate> floatingRates) setStubAmount(Money _stubAmount) setStubRate(BigDecimal _stubRate) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosettaMethods inherited from interface cdm.product.asset.StubValue.StubValueBuilder
process
-
Field Details
-
floatingRate
-
stubRate
-
stubAmount
-
-
Constructor Details
-
StubValueBuilderImpl
public StubValueBuilderImpl()
-
-
Method Details
-
getFloatingRate
@RosettaAttribute("floatingRate") @RuneAttribute("floatingRate") public List<? extends StubFloatingRate.StubFloatingRateBuilder> getFloatingRate()Description copied from interface:StubValueThe 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:
getFloatingRatein interfaceStubValue- Specified by:
getFloatingRatein interfaceStubValue.StubValueBuilder
-
getOrCreateFloatingRate
- Specified by:
getOrCreateFloatingRatein interfaceStubValue.StubValueBuilder
-
getStubRate
Description copied from interface:StubValueAn actual rate to apply for the initial or final stub period may have been agreed between the principal parties (in a similar way to how an initial rate may have been agreed for the first regular period). If an actual stub rate has been agreed then it would be included in this component. It will be a per annum rate, expressed as a decimal. A stub rate of 5% would be represented as 0.05.- Specified by:
getStubRatein interfaceStubValue
-
getStubAmount
@RosettaAttribute("stubAmount") @RuneAttribute("stubAmount") public Money.MoneyBuilder getStubAmount()Description copied from interface:StubValueAn 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:
getStubAmountin interfaceStubValue- Specified by:
getStubAmountin interfaceStubValue.StubValueBuilder
-
getOrCreateStubAmount
- Specified by:
getOrCreateStubAmountin interfaceStubValue.StubValueBuilder
-
addFloatingRate
@RosettaAttribute("floatingRate") @RuneAttribute("floatingRate") public StubValue.StubValueBuilder addFloatingRate(StubFloatingRate _floatingRate) - Specified by:
addFloatingRatein interfaceStubValue.StubValueBuilder
-
addFloatingRate
- Specified by:
addFloatingRatein interfaceStubValue.StubValueBuilder
-
addFloatingRate
- Specified by:
addFloatingRatein interfaceStubValue.StubValueBuilder
-
setFloatingRate
@RuneAttribute("floatingRate") public StubValue.StubValueBuilder setFloatingRate(List<? extends StubFloatingRate> floatingRates) - Specified by:
setFloatingRatein interfaceStubValue.StubValueBuilder
-
setStubRate
@RosettaAttribute("stubRate") @RuneAttribute("stubRate") public StubValue.StubValueBuilder setStubRate(BigDecimal _stubRate) - Specified by:
setStubRatein interfaceStubValue.StubValueBuilder
-
setStubAmount
@RosettaAttribute("stubAmount") @RuneAttribute("stubAmount") public StubValue.StubValueBuilder setStubAmount(Money _stubAmount) - Specified by:
setStubAmountin interfaceStubValue.StubValueBuilder
-
build
Description copied from interface:StubValueBuild Methods -
toBuilder
-
prune
- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Specified by:
prunein interfaceStubValue.StubValueBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public StubValue.StubValueBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-