public final class CommitmentAdjustment extends Object implements FacilityEvent, org.joda.beans.ImmutableBean
Modifier and Type | Class and Description |
---|---|
static class |
CommitmentAdjustment.Builder
The bean-builder for
CommitmentAdjustment . |
static class |
CommitmentAdjustment.Meta
The meta-bean for
CommitmentAdjustment . |
Modifier and Type | Method and Description |
---|---|
static CommitmentAdjustment.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.
|
FacilityEventType |
getType()
Return type of facility event CommitmentAdjustmentEvent
|
int |
hashCode() |
boolean |
isPik()
Gets flag indicating that this adjustment represents a capitalization from a PIK accrual.
|
boolean |
isRefusalAllowed()
Gets if true, indicates a non-prorata adjustment, e.g.
|
static CommitmentAdjustment.Meta |
meta()
The meta-bean for
CommitmentAdjustment . |
CommitmentAdjustment.Meta |
metaBean() |
ProratedLoanEvent |
prorate(com.opengamma.strata.product.ProductTrade trade)
Prorate a global commitment adjustment into a share based on a trade.
|
CommitmentAdjustment.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public ProratedLoanEvent prorate(com.opengamma.strata.product.ProductTrade trade)
prorate
in interface Proratable<ProratedLoanEvent>
trade
- buy or sell trade representing a full or partial allocationpublic FacilityEventType getType()
getType
in interface FacilityEvent
public static CommitmentAdjustment.Meta meta()
CommitmentAdjustment
.public static CommitmentAdjustment.Builder builder()
public CommitmentAdjustment.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public java.time.LocalDate getEffectiveDate()
getEffectiveDate
in interface FacilityEvent
public com.opengamma.strata.basics.currency.CurrencyAmount getAmount()
public boolean isPik()
public boolean isRefusalAllowed()
public CommitmentAdjustment.Builder toBuilder()
Copyright © 2018. All rights reserved.