public static final class LoanContract.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<LoanContract>
LoanContract
.Modifier and Type | Method and Description |
---|---|
LoanContract.Builder |
accrual(Accrual accrual)
Sets contract accrual, fixed or floating.
|
LoanContract |
build() |
LoanContract.Builder |
events(List<? extends LoanContractEvent> events)
Sets events (Borrowing, Repayment) associated with this contract.
|
LoanContract.Builder |
events(LoanContractEvent... events)
Sets the
events property in the builder
from an array of objects. |
Object |
get(String propertyName) |
LoanContract.Builder |
id(com.opengamma.strata.basics.StandardId id)
Sets the internal id of this contract
|
LoanContract.Builder |
paymentDate(java.time.LocalDate paymentDate)
Sets the payment date of the contract.
|
LoanContract.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
LoanContract.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<LoanContract>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<LoanContract>
public LoanContract.Builder set(String propertyName, Object newValue)
public LoanContract.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<LoanContract>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<LoanContract>
public LoanContract build()
public LoanContract.Builder id(com.opengamma.strata.basics.StandardId id)
id
- the new value, not nullpublic LoanContract.Builder accrual(Accrual accrual)
accrual
- the new value, not nullpublic LoanContract.Builder paymentDate(java.time.LocalDate paymentDate)
Interest pays on this date. Usually identical to end date unless end date is a holiday. Payment date is given, not calculated.
paymentDate
- the new value, not nullpublic LoanContract.Builder events(List<? extends LoanContractEvent> events)
A loan contract may have of zero or more events.
events
- the new valuepublic LoanContract.Builder events(LoanContractEvent... events)
events
property in the builder
from an array of objects.events
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<LoanContract>
Copyright © 2018. All rights reserved.