public class Repayment extends Object implements LoanContractEvent, org.joda.beans.ImmutableBean
Modifier and Type | Class and Description |
---|---|
static class |
Repayment.Builder
The bean-builder for
Repayment . |
static class |
Repayment.Meta
The meta-bean for
Repayment . |
Modifier | Constructor and Description |
---|---|
protected |
Repayment(Repayment.Builder builder)
Restricted constructor.
|
Modifier and Type | Method and Description |
---|---|
static Repayment.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 Repayment.Meta |
meta()
The meta-bean for
Repayment . |
Repayment.Meta |
metaBean() |
ProratedLoanContractEvent |
prorate(com.opengamma.strata.product.ProductTrade trade)
Prorate a global repayment into a share based on a trade.
|
Repayment.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
protected void |
toString(StringBuilder buf) |
protected Repayment(Repayment.Builder builder)
builder
- the builder to copy from, not nullpublic ProratedLoanContractEvent prorate(com.opengamma.strata.product.ProductTrade trade)
prorate
in interface Proratable<ProratedLoanContractEvent>
trade
- buy or sell trade representing a full or partial allocationpublic LoanContractEventType getType()
getType
in interface LoanContractEvent
public static Repayment.Meta meta()
Repayment
.public static Repayment.Builder builder()
public Repayment.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public java.time.LocalDate getEffectiveDate()
getEffectiveDate
in interface LoanContractEvent
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 LoanContractEvent
public boolean isInterestOnPaydown()
If true, interest on repaid principal is paid on the repayment date, not the contract end date.
public double getPrice()
public Repayment.Builder toBuilder()
protected void toString(StringBuilder buf)
Copyright © 2018. All rights reserved.