public final class ResolvedBillTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of BillTrade and is the primary input to the pricers.
Applications will typically create a ResolvedBillTrade from a BillTrade
using BillTrade.resolve(ReferenceData).
A ResolvedBillTrade is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedBillTrade.Builder
The bean-builder for
ResolvedBillTrade. |
static class |
ResolvedBillTrade.Meta
The meta-bean for
ResolvedBillTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedBillTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
PortfolioItemInfo |
getInfo()
Gets the additional information, defaulted to an empty instance.
|
ResolvedBill |
getProduct()
Gets the resolved bill product.
|
double |
getQuantity()
Gets the quantity, indicating the number of bond contracts in the trade.
|
Optional<Payment> |
getSettlement()
Gets the settlement details of the bill trade.
|
int |
hashCode() |
static ResolvedBillTrade.Meta |
meta()
The meta-bean for
ResolvedBillTrade. |
ResolvedBillTrade.Meta |
metaBean() |
ResolvedBillTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResolvedBillTrade.Meta meta()
ResolvedBillTrade.public static ResolvedBillTrade.Builder builder()
public ResolvedBillTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PortfolioItemInfo getInfo()
This allows additional information to be attached.
getInfo in interface ResolvedTradepublic ResolvedBill getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ResolvedTradepublic double getQuantity()
This will be positive if buying and negative if selling.
public Optional<Payment> getSettlement()
When this class is used to represent a position, this property will be empty.
public ResolvedBillTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.