public static class ProratedRepayment.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedRepayment>
ProratedRepayment
.Modifier | Constructor and Description |
---|---|
protected |
Builder()
Restricted constructor.
|
protected |
Builder(ProratedRepayment beanToCopy)
Restricted copy constructor.
|
Modifier and Type | Method and Description |
---|---|
ProratedRepayment.Builder |
amount(com.opengamma.strata.basics.currency.CurrencyAmount amount)
Sets the contract event global amount.
|
ProratedRepayment |
build() |
ProratedRepayment.Builder |
effectiveDate(java.time.LocalDate effectiveDate)
Sets the effective date of the event.
|
Object |
get(String propertyName) |
ProratedRepayment.Builder |
interestOnPaydown(boolean interestOnPaydown)
Sets interest-on-paydown flag.
|
ProratedRepayment.Builder |
price(double price)
Sets the price of the repaid principal, default par.
|
ProratedRepayment.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ProratedRepayment.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
protected void |
toString(StringBuilder buf) |
protected Builder()
protected Builder(ProratedRepayment beanToCopy)
beanToCopy
- the bean to copy from, not nullpublic Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<ProratedRepayment>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedRepayment>
public ProratedRepayment.Builder set(String propertyName, Object newValue)
public ProratedRepayment.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<ProratedRepayment>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedRepayment>
public ProratedRepayment build()
public ProratedRepayment.Builder effectiveDate(java.time.LocalDate effectiveDate)
effectiveDate
- the new value, not nullpublic ProratedRepayment.Builder amount(com.opengamma.strata.basics.currency.CurrencyAmount amount)
The event global amount represents the amount of the event, and must be non-negative.
amount
- the new value, not nullpublic ProratedRepayment.Builder interestOnPaydown(boolean interestOnPaydown)
If true, interest on repaid principal is paid on the repayment date, not the contract end date.
interestOnPaydown
- the new valuepublic ProratedRepayment.Builder price(double price)
price
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedRepayment>
protected void toString(StringBuilder buf)
Copyright © 2018. All rights reserved.