public static final class ResolvedFixedCouponBondTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>
ResolvedFixedCouponBondTrade.| Modifier and Type | Method and Description |
|---|---|
ResolvedFixedCouponBondTrade |
build() |
Object |
get(String propertyName) |
ResolvedFixedCouponBondTrade.Builder |
info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.
|
ResolvedFixedCouponBondTrade.Builder |
product(ResolvedFixedCouponBond product)
Sets the resolved fixed coupon bond product.
|
ResolvedFixedCouponBondTrade.Builder |
quantity(double quantity)
Sets the quantity, indicating the number of bond contracts in the trade.
|
ResolvedFixedCouponBondTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedFixedCouponBondTrade.Builder |
set(String propertyName,
Object newValue) |
ResolvedFixedCouponBondTrade.Builder |
settlement(ResolvedFixedCouponBondSettlement settlement)
Sets the settlement details of the bond trade.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>public ResolvedFixedCouponBondTrade.Builder set(String propertyName, Object newValue)
public ResolvedFixedCouponBondTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedFixedCouponBondTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>public ResolvedFixedCouponBondTrade build()
public ResolvedFixedCouponBondTrade.Builder info(PortfolioItemInfo info)
This allows additional information to be attached.
info - the new value, not nullpublic ResolvedFixedCouponBondTrade.Builder product(ResolvedFixedCouponBond product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic ResolvedFixedCouponBondTrade.Builder quantity(double quantity)
This will be positive if buying and negative if selling.
quantity - the new valuepublic ResolvedFixedCouponBondTrade.Builder settlement(ResolvedFixedCouponBondSettlement settlement)
When this class is used to represent a position, this property will be empty.
settlement - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedFixedCouponBondTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.