public final class ResolvedCapitalIndexedBondTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of CapitalIndexedBondTrade and is the primary input to the pricers.
Applications will typically create a ResolvedCapitalIndexedBondTrade from a CapitalIndexedBondTrade
using CapitalIndexedBondTrade.resolve(ReferenceData).
It is also the resolved form of CapitalIndexedBondPosition for those cases where a position is held.
The position is priced as though the trade is fully settled.
A ResolvedCapitalIndexedBondTrade 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 |
ResolvedCapitalIndexedBondTrade.Builder
The bean-builder for
ResolvedCapitalIndexedBondTrade. |
static class |
ResolvedCapitalIndexedBondTrade.Meta
The meta-bean for
ResolvedCapitalIndexedBondTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedCapitalIndexedBondTrade.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.
|
ResolvedCapitalIndexedBond |
getProduct()
Gets the resolved capital indexed bond product.
|
double |
getQuantity()
Gets the quantity, indicating the number of bond contracts in the trade.
|
Optional<ResolvedCapitalIndexedBondSettlement> |
getSettlement()
Gets the settlement details of the bond trade.
|
int |
hashCode() |
static ResolvedCapitalIndexedBondTrade.Meta |
meta()
The meta-bean for
ResolvedCapitalIndexedBondTrade. |
ResolvedCapitalIndexedBondTrade.Meta |
metaBean() |
ResolvedCapitalIndexedBondTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResolvedCapitalIndexedBondTrade.Meta meta()
ResolvedCapitalIndexedBondTrade.public static ResolvedCapitalIndexedBondTrade.Builder builder()
public ResolvedCapitalIndexedBondTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PortfolioItemInfo getInfo()
This allows additional information to be attached.
getInfo in interface ResolvedTradepublic ResolvedCapitalIndexedBond 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<ResolvedCapitalIndexedBondSettlement> getSettlement()
When this class is used to represent a position, this property will be empty.
public ResolvedCapitalIndexedBondTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.