• java.lang.Object
• All Implemented Interfaces:
ResolvedTrade, Serializable, org.joda.beans.Bean, org.joda.beans.ImmutableBean

public final class ResolvedCapitalIndexedBondTrade
extends Object
implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
A trade in a capital indexed bond, resolved for pricing.

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.

#### Price

Strata uses decimal prices for bonds in the trade model, pricers and market data. For example, a price of 99.32% is represented in Strata by 0.9932.
Serialized Form
• ### Nested Class Summary

Nested Classes
Modifier and Type Class Description
static class  ResolvedCapitalIndexedBondTrade.Builder
The bean-builder for ResolvedCapitalIndexedBondTrade.
static class  ResolvedCapitalIndexedBondTrade.Meta
The meta-bean for ResolvedCapitalIndexedBondTrade.
• ### Method Summary

All Methods
Modifier and Type Method 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()
• ### Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
• ### Methods inherited from interface org.joda.beans.Bean

property, propertyNames
• ### Method Detail

• #### meta

public static ResolvedCapitalIndexedBondTrade.Meta meta()
The meta-bean for ResolvedCapitalIndexedBondTrade.
Returns:
the meta-bean, not null
• #### builder

public static ResolvedCapitalIndexedBondTrade.Builder builder()
Returns a builder used to create an instance of the bean.
Returns:
the builder, not null
• #### metaBean

public ResolvedCapitalIndexedBondTrade.Meta metaBean()
Specified by:
metaBean in interface org.joda.beans.Bean
• #### getInfo

public PortfolioItemInfo getInfo()
Gets the additional information, defaulted to an empty instance.

This allows additional information to be attached.

Specified by:
getInfo in interface ResolvedTrade
Returns:
the value of the property, not null
• #### getProduct

public ResolvedCapitalIndexedBond getProduct()
Gets the resolved capital indexed bond product.

The product captures the contracted financial details of the trade.

Specified by:
getProduct in interface ResolvedTrade
Returns:
the value of the property, not null
• #### getQuantity

public double getQuantity()
Gets the quantity, indicating the number of bond contracts in the trade.

This will be positive if buying and negative if selling.

Returns:
the value of the property
• #### getSettlement

public Optional<ResolvedCapitalIndexedBondSettlement> getSettlement()
Gets the settlement details of the bond trade.

When this class is used to represent a position, this property will be empty.

Returns:
the optional value of the property, not null
• #### toBuilder

public ResolvedCapitalIndexedBondTrade.Builder toBuilder()
Returns a builder that allows this bean to be mutated.
Returns:
the mutable builder, not null
• #### equals

public boolean equals​(Object obj)
Overrides:
equals in class Object
• #### hashCode

public int hashCode()
Overrides:
hashCode in class Object
• #### toString

public String toString()
Overrides:
toString in class Object