Class Bill.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<Bill>
-
- com.opengamma.strata.product.bond.Bill.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bill
build()
Bill.Builder
dayCount(DayCount dayCount)
Sets the day count convention applicable.Object
get(String propertyName)
Bill.Builder
legalEntityId(LegalEntityId legalEntityId)
Sets the legal entity identifier.Bill.Builder
notional(AdjustablePayment notional)
Sets the adjustable notional payment of the bill notional, the amount must be positive.Bill.Builder
securityId(SecurityId securityId)
Sets the security identifier.Bill.Builder
set(String propertyName, Object newValue)
Bill.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
Bill.Builder
settlementDateOffset(DaysAdjustment settlementDateOffset)
Sets the number of days between valuation date and settlement date.String
toString()
Bill.Builder
yieldConvention(BillYieldConvention yieldConvention)
Sets yield convention.
-
-
-
Method Detail
-
set
public Bill.Builder set(String propertyName, Object newValue)
-
set
public Bill.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
-
build
public Bill build()
-
securityId
public Bill.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 Bill.Builder notional(AdjustablePayment notional)
Sets the adjustable 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 Bill.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 Bill.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 Bill.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 Bill.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
-
-