Class ResolvedIborFixingDeposit.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFixingDeposit>
-
- com.opengamma.strata.product.deposit.ResolvedIborFixingDeposit.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedIborFixingDeposit>
- Enclosing class:
- ResolvedIborFixingDeposit
public static final class ResolvedIborFixingDeposit.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFixingDeposit>
The bean-builder forResolvedIborFixingDeposit
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedIborFixingDeposit
build()
ResolvedIborFixingDeposit.Builder
currency(Currency currency)
Sets the primary currency.ResolvedIborFixingDeposit.Builder
endDate(LocalDate endDate)
Sets the end date of the deposit.ResolvedIborFixingDeposit.Builder
fixedRate(double fixedRate)
Sets the fixed rate of interest.ResolvedIborFixingDeposit.Builder
floatingRate(IborRateComputation floatingRate)
Sets the floating rate of interest.Object
get(String propertyName)
ResolvedIborFixingDeposit.Builder
notional(double notional)
Sets the notional amount.ResolvedIborFixingDeposit.Builder
set(String propertyName, Object newValue)
ResolvedIborFixingDeposit.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
ResolvedIborFixingDeposit.Builder
startDate(LocalDate startDate)
Sets the start date of the deposit.String
toString()
ResolvedIborFixingDeposit.Builder
yearFraction(double yearFraction)
Sets the year fraction between the start and end date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<ResolvedIborFixingDeposit>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFixingDeposit>
-
set
public ResolvedIborFixingDeposit.Builder set(String propertyName, Object newValue)
-
set
public ResolvedIborFixingDeposit.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<ResolvedIborFixingDeposit>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFixingDeposit>
-
build
public ResolvedIborFixingDeposit build()
-
currency
public ResolvedIborFixingDeposit.Builder currency(Currency currency)
Sets the primary currency.This is the currency of the deposit and the currency that payment is made in. The data model permits this currency to differ from that of the index, however the two are typically the same.
- Parameters:
currency
- the new value, not null- Returns:
- this, for chaining, not null
-
notional
public ResolvedIborFixingDeposit.Builder notional(double notional)
Sets the notional amount.The amount that is deposited. It is a positive signed amount if the deposit is 'Buy', and a negative signed amount if the deposit is 'Sell'.
The currency of the notional is specified by
currency
.- Parameters:
notional
- the new value- Returns:
- this, for chaining, not null
-
startDate
public ResolvedIborFixingDeposit.Builder startDate(LocalDate startDate)
Sets the start date of the deposit.This is the first date that interest accrues.
This is an adjusted date, which should be a valid business day
- Parameters:
startDate
- the new value, not null- Returns:
- this, for chaining, not null
-
endDate
public ResolvedIborFixingDeposit.Builder endDate(LocalDate endDate)
Sets the end date of the deposit.This is the last day that interest accrues. This date must be after the start date.
This is an adjusted date, which should be a valid business day
- Parameters:
endDate
- the new value, not null- Returns:
- this, for chaining, not null
-
yearFraction
public ResolvedIborFixingDeposit.Builder yearFraction(double yearFraction)
Sets the year fraction between the start and end date.The value is usually calculated using a
DayCount
. Typically the value will be close to 1 for one year and close to 0.5 for six months. The fraction may be greater than 1, but not less than 0.- Parameters:
yearFraction
- the new value- Returns:
- this, for chaining, not null
-
fixedRate
public ResolvedIborFixingDeposit.Builder fixedRate(double fixedRate)
Sets the fixed rate of interest. A 5% rate will be expressed as 0.05.- Parameters:
fixedRate
- the new value- Returns:
- this, for chaining, not null
-
floatingRate
public ResolvedIborFixingDeposit.Builder floatingRate(IborRateComputation floatingRate)
Sets the floating rate of interest.The floating rate to be paid is based on this index. It will be a well known market index such as 'GBP-LIBOR-3M'.
- Parameters:
floatingRate
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFixingDeposit>
-
-