public static final class ProratedFacility.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedFacility>
ProratedFacility
.Modifier and Type | Method and Description |
---|---|
ProratedFacility.Builder |
agent(com.opengamma.strata.basics.StandardId agent)
Sets the agent identifier, optional.
|
ProratedFacility.Builder |
borrower(com.opengamma.strata.basics.StandardId borrower)
Sets the borrower identifier
|
ProratedFacility |
build() |
ProratedFacility.Builder |
commitment(com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries commitment)
Sets given total commitment schedule for this loan.
|
ProratedFacility.Builder |
contracts(List<? extends ProratedLoanContract> contracts)
Sets the interest paying contracts of the facility.
|
ProratedFacility.Builder |
contracts(ProratedLoanContract... contracts)
Sets the
contracts property in the builder
from an array of objects. |
ProratedFacility.Builder |
currency(com.opengamma.strata.basics.currency.Currency currency)
Sets the primary currency.
|
ProratedFacility.Builder |
events(List<? extends ProratedLoanEvent> events)
Sets events (CommitmentAdjustment) associated with this loan.
|
ProratedFacility.Builder |
events(ProratedLoanEvent... events)
Sets the
events property in the builder
from an array of objects. |
ProratedFacility.Builder |
facilityType(FacilityType facilityType)
Sets the type of this facility.
|
ProratedFacility.Builder |
fees(List<? extends ProratedAccruingFee> fees)
Sets the accruing fees of the facility.
|
ProratedFacility.Builder |
fees(ProratedAccruingFee... fees)
Sets the
fees property in the builder
from an array of objects. |
Object |
get(String propertyName) |
ProratedFacility.Builder |
id(com.opengamma.strata.basics.StandardId id)
Sets unique loan identifier.
|
ProratedFacility.Builder |
identifiers(List<? extends com.opengamma.strata.basics.StandardId> identifiers)
Sets the identifiers of this facility.
|
ProratedFacility.Builder |
identifiers(com.opengamma.strata.basics.StandardId... identifiers)
Sets the
identifiers property in the builder
from an array of objects. |
ProratedFacility.Builder |
maturityDate(java.time.LocalDate maturityDate)
Sets the maturity date of this facility.
|
ProratedFacility.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ProratedFacility.Builder |
set(String propertyName,
Object newValue) |
ProratedFacility.Builder |
startDate(java.time.LocalDate startDate)
Sets the funding date of this facility.
|
String |
toString() |
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<ProratedFacility>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedFacility>
public ProratedFacility.Builder set(String propertyName, Object newValue)
public ProratedFacility.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<ProratedFacility>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ProratedFacility>
public ProratedFacility build()
public ProratedFacility.Builder id(com.opengamma.strata.basics.StandardId id)
A public (e.g. LXID) or internal id which uniquely identifies a loan facility.
id
- the new value, not nullpublic ProratedFacility.Builder borrower(com.opengamma.strata.basics.StandardId borrower)
An identifier used to specify the borrower of the facility.
borrower
- the new value, not nullpublic ProratedFacility.Builder agent(com.opengamma.strata.basics.StandardId agent)
An identifier used to specify the agent of the facility.
agent
- the new value, not nullpublic ProratedFacility.Builder facilityType(FacilityType facilityType)
facilityType
- the new value, not nullpublic ProratedFacility.Builder identifiers(List<? extends com.opengamma.strata.basics.StandardId> identifiers)
identifiers
- the new valuepublic ProratedFacility.Builder identifiers(com.opengamma.strata.basics.StandardId... identifiers)
identifiers
property in the builder
from an array of objects.identifiers
- the new valuepublic ProratedFacility.Builder startDate(java.time.LocalDate startDate)
Funds may be drawn from this date.
startDate
- the new value, not nullpublic ProratedFacility.Builder maturityDate(java.time.LocalDate maturityDate)
Date on which final principal and interest is repaid.
maturityDate
- the new value, not nullpublic ProratedFacility.Builder currency(com.opengamma.strata.basics.currency.Currency currency)
This is the currency of the loan and the currency that payment is made in.
currency
- the new value, not nullpublic ProratedFacility.Builder commitment(com.opengamma.strata.collect.timeseries.LocalDateDoubleTimeSeries commitment)
commitment
- the new value, not nullpublic ProratedFacility.Builder contracts(List<? extends ProratedLoanContract> contracts)
A loan facility may have of zero or more contracts.
contracts
- the new valuepublic ProratedFacility.Builder contracts(ProratedLoanContract... contracts)
contracts
property in the builder
from an array of objects.contracts
- the new valuepublic ProratedFacility.Builder fees(List<? extends ProratedAccruingFee> fees)
A loan facility may have of zero or more accruing fees.
fees
- the new valuepublic ProratedFacility.Builder fees(ProratedAccruingFee... fees)
fees
property in the builder
from an array of objects.fees
- the new valuepublic ProratedFacility.Builder events(List<? extends ProratedLoanEvent> events)
A loan may have of zero or more events.
events
- the new valuepublic ProratedFacility.Builder events(ProratedLoanEvent... 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<ProratedFacility>
Copyright © 2018. All rights reserved.