public final class BulletPayment extends Object implements Product, Resolvable<ResolvedBulletPayment>, org.joda.beans.ImmutableBean, Serializable
An Over-The-Counter (OTC) trade where one party makes a payment to another. The reason for the payment is not captured.
| Modifier and Type | Class and Description |
|---|---|
static class |
BulletPayment.Builder
The bean-builder for
BulletPayment. |
static class |
BulletPayment.Meta
The meta-bean for
BulletPayment. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
static BulletPayment.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of this payment.
|
AdjustableDate |
getDate()
Gets the date that the payment is made.
|
PayReceive |
getPayReceive()
Gets whether the payment is to be paid or received.
|
CurrencyAmount |
getValue()
Gets the amount of the payment.
|
int |
hashCode() |
static BulletPayment.Meta |
meta()
The meta-bean for
BulletPayment. |
BulletPayment.Meta |
metaBean() |
ResolvedBulletPayment |
resolve(ReferenceData refData) |
BulletPayment.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallPaymentCurrencies, isCrossCurrencypublic Currency getCurrency()
public ImmutableSet<Currency> allCurrencies()
ProductThis returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.
allCurrencies in interface Productpublic ResolvedBulletPayment resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedBulletPayment>public static BulletPayment.Meta meta()
BulletPayment.public static BulletPayment.Builder builder()
public BulletPayment.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PayReceive getPayReceive()
A value of 'Pay' implies that the amount is paid to the counterparty. A value of 'Receive' implies that the amount is received from the counterparty.
public CurrencyAmount getValue()
The amount is unsigned, with the direction implied by payReceive.
public AdjustableDate getDate()
This date should normally be a valid business day.
public BulletPayment.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.