public class Borrowing extends Object implements LoanContractEvent, org.joda.beans.ImmutableBean
| Modifier and Type | Class and Description |
|---|---|
static class |
Borrowing.Builder
The bean-builder for
Borrowing. |
static class |
Borrowing.Meta
The meta-bean for
Borrowing. |
| Modifier | Constructor and Description |
|---|---|
protected |
Borrowing(Borrowing.Builder builder)
Restricted constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Borrowing.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.
|
LoanContractEventType |
getType()
Return type BorrowingEvent.
|
int |
hashCode() |
static Borrowing.Meta |
meta()
The meta-bean for
Borrowing. |
Borrowing.Meta |
metaBean() |
ProratedLoanContractEvent |
prorate(com.opengamma.strata.product.ProductTrade trade)
Prorate a global borrowing into a share based on a trade.
|
Borrowing.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
protected void |
toString(StringBuilder buf) |
protected Borrowing(Borrowing.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 LoanContractEventpublic static Borrowing.Meta meta()
Borrowing.public static Borrowing.Builder builder()
public Borrowing.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic java.time.LocalDate getEffectiveDate()
getEffectiveDate in interface LoanContractEventpublic 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 LoanContractEventpublic Borrowing.Builder toBuilder()
protected void toString(StringBuilder buf)
Copyright © 2018. All rights reserved.