public class ProratedRepayment extends Object implements ProratedLoanContractEvent, org.joda.beans.ImmutableBean
Modifier and Type | Class and Description |
---|---|
static class |
ProratedRepayment.Builder
The bean-builder for
ProratedRepayment . |
static class |
ProratedRepayment.Meta
The meta-bean for
ProratedRepayment . |
Modifier | Constructor and Description |
---|---|
protected |
ProratedRepayment(ProratedRepayment.Builder builder)
Restricted constructor.
|
Modifier and Type | Method and Description |
---|---|
static ProratedRepayment.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
com.opengamma.strata.basics.currency.CurrencyAmount |
getAmount()
Gets the contract event global amount.
|
java.time.LocalDate |
getEffectiveDate()
Gets the effective date of the event.
|
double |
getPrice()
Gets the price of the repaid principal, default par.
|
LoanContractEventType |
getType()
Return type RepaymentEvent.
|
int |
hashCode() |
boolean |
isInterestOnPaydown()
Gets interest-on-paydown flag.
|
static ProratedRepayment.Meta |
meta()
The meta-bean for
ProratedRepayment . |
ProratedRepayment.Meta |
metaBean() |
ProratedRepayment.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
protected void |
toString(StringBuilder buf) |
protected ProratedRepayment(ProratedRepayment.Builder builder)
builder
- the builder to copy from, not nullpublic LoanContractEventType getType()
getType
in interface ProratedLoanContractEvent
public static ProratedRepayment.Meta meta()
ProratedRepayment
.public static ProratedRepayment.Builder builder()
public ProratedRepayment.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public java.time.LocalDate getEffectiveDate()
getEffectiveDate
in interface ProratedLoanContractEvent
public com.opengamma.strata.basics.currency.CurrencyAmount getAmount()
The event global amount represents the amount of the event, and must be non-negative.
getAmount
in interface ProratedLoanContractEvent
public boolean isInterestOnPaydown()
If true, interest on repaid principal is paid on the repayment date, not the contract end date.
public double getPrice()
public ProratedRepayment.Builder toBuilder()
protected void toString(StringBuilder buf)
Copyright © 2018. All rights reserved.