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