Class ResolvedBill.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBill>
-
- com.opengamma.strata.product.bond.ResolvedBill.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedBill>
- Enclosing class:
- ResolvedBill
public static final class ResolvedBill.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBill>
The bean-builder forResolvedBill.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedBillbuild()ResolvedBill.BuilderdayCount(DayCount dayCount)Sets the day count convention applicable.Objectget(String propertyName)ResolvedBill.BuilderlegalEntityId(LegalEntityId legalEntityId)Sets the legal entity identifier.ResolvedBill.Buildernotional(Payment notional)Sets the notional payment of the bill notional, the amount must be positive.ResolvedBill.BuildersecurityId(SecurityId securityId)Sets the security identifier.ResolvedBill.Builderset(String propertyName, Object newValue)ResolvedBill.Builderset(org.joda.beans.MetaProperty<?> property, Object value)ResolvedBill.BuildersettlementDateOffset(DaysAdjustment settlementDateOffset)Sets the number of days between valuation date and settlement date.StringtoString()ResolvedBill.BuilderyieldConvention(BillYieldConvention yieldConvention)Sets yield convention.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedBill>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBill>
-
set
public ResolvedBill.Builder set(String propertyName, Object newValue)
-
set
public ResolvedBill.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedBill>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBill>
-
build
public ResolvedBill build()
-
securityId
public ResolvedBill.Builder securityId(SecurityId securityId)
Sets the security identifier.This identifier uniquely identifies the security within the system.
- Parameters:
securityId- the new value, not null- Returns:
- this, for chaining, not null
-
notional
public ResolvedBill.Builder notional(Payment notional)
Sets the notional payment of the bill notional, the amount must be positive.- Parameters:
notional- the new value, not null- Returns:
- this, for chaining, not null
-
dayCount
public ResolvedBill.Builder dayCount(DayCount dayCount)
Sets the day count convention applicable.The conversion from dates to a numerical value is made based on this day count.
- Parameters:
dayCount- the new value, not null- Returns:
- this, for chaining, not null
-
yieldConvention
public ResolvedBill.Builder yieldConvention(BillYieldConvention yieldConvention)
Sets yield convention.The convention defines how to convert from yield to price and inversely.
- Parameters:
yieldConvention- the new value, not null- Returns:
- this, for chaining, not null
-
legalEntityId
public ResolvedBill.Builder legalEntityId(LegalEntityId legalEntityId)
Sets the legal entity identifier.This identifier is used for the legal entity that issues the bill.
- Parameters:
legalEntityId- the new value, not null- Returns:
- this, for chaining, not null
-
settlementDateOffset
public ResolvedBill.Builder settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.It is usually one business day for US and UK bills and two days for Euroland government bills.
- Parameters:
settlementDateOffset- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBill>
-
-