## Class IborRateStubCalculation.Builder

• All Implemented Interfaces:
BeanBuilder<IborRateStubCalculation>
Enclosing class:
IborRateStubCalculation

public static final class IborRateStubCalculation.Builder
extends DirectFieldsBeanBuilder<IborRateStubCalculation>
The bean-builder for IborRateStubCalculation.
• ### Method Summary

All Methods
Modifier and Type Method Description
IborRateStubCalculation build()
IborRateStubCalculation.Builder fixedRate​(java.lang.Double fixedRate)
Sets the fixed rate to use in the stub.
java.lang.Object get​(java.lang.String propertyName)
IborRateStubCalculation.Builder index​(IborIndex index)
Sets the Ibor index to be used for the stub.
IborRateStubCalculation.Builder indexInterpolated​(IborIndex indexInterpolated)
Sets the second Ibor index to be used for the stub, linearly interpolated.
IborRateStubCalculation.Builder knownAmount​(CurrencyAmount knownAmount)
Sets the known amount to pay/receive for the stub.
IborRateStubCalculation.Builder set​(java.lang.String propertyName, java.lang.Object newValue)
IborRateStubCalculation.Builder set​(MetaProperty<?> property, java.lang.Object value)
java.lang.String toString()
• ### Methods inherited from class org.joda.beans.impl.direct.DirectFieldsBeanBuilder

get
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
• ### Method Detail

• #### get

public java.lang.Object get​(java.lang.String propertyName)
Specified by:
get in interface BeanBuilder<IborRateStubCalculation>
Overrides:
get in class DirectFieldsBeanBuilder<IborRateStubCalculation>
• #### set

public IborRateStubCalculation.Builder set​(java.lang.String propertyName,
java.lang.Object newValue)
• #### set

public IborRateStubCalculation.Builder set​(MetaProperty<?> property,
java.lang.Object value)
Specified by:
set in interface BeanBuilder<IborRateStubCalculation>
Overrides:
set in class DirectFieldsBeanBuilder<IborRateStubCalculation>
• #### build

public IborRateStubCalculation build()
• #### fixedRate

public IborRateStubCalculation.Builder fixedRate​(java.lang.Double fixedRate)
Sets the fixed rate to use in the stub. A 5% rate will be expressed as 0.05.

In certain circumstances two counterparties agree a fixed rate for the stub. It is used in place of an observed fixing. Other calculation elements, such as gearing or spread, still apply.

If the fixed rate is present, then knownAmount, index and indexInterpolated must not be present.

Parameters:
fixedRate - the new value
Returns:
this, for chaining, not null
• #### knownAmount

public IborRateStubCalculation.Builder knownAmount​(CurrencyAmount knownAmount)
Sets the known amount to pay/receive for the stub.

If the known amount is present, then fixedRate, index and indexInterpolated must not be present.

Parameters:
knownAmount - the new value
Returns:
this, for chaining, not null
• #### index

public IborRateStubCalculation.Builder index​(IborIndex index)
Sets the Ibor index to be used for the stub.

This will be used throughout the stub unless indexInterpolated is present.

If the index is present, then fixedRate and knownAmount must not be present.

Parameters:
index - the new value
Returns:
this, for chaining, not null
• #### indexInterpolated

public IborRateStubCalculation.Builder indexInterpolated​(IborIndex indexInterpolated)
Sets the second Ibor index to be used for the stub, linearly interpolated.

This will be used with index to linearly interpolate the rate. This index may be shorter or longer than index, but not the same.

If the interpolated index is present, then index must also be present, and fixedRate and knownAmount must not be present.

Parameters:
indexInterpolated - the new value
Returns:
this, for chaining, not null
• #### toString

public java.lang.String toString()
Overrides:
toString in class DirectFieldsBeanBuilder<IborRateStubCalculation>