Class ResolvedIborFutureTrade.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFutureTrade>
-
- com.opengamma.strata.product.index.ResolvedIborFutureTrade.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedIborFutureTrade>
- Enclosing class:
- ResolvedIborFutureTrade
public static final class ResolvedIborFutureTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFutureTrade>
The bean-builder forResolvedIborFutureTrade.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedIborFutureTradebuild()Objectget(String propertyName)ResolvedIborFutureTrade.Builderinfo(PortfolioItemInfo info)Sets the additional information, defaulted to an empty instance.ResolvedIborFutureTrade.Builderproduct(ResolvedIborFuture product)Sets the future that was traded.ResolvedIborFutureTrade.Builderquantity(double quantity)Sets the quantity that was traded.ResolvedIborFutureTrade.Builderset(String propertyName, Object newValue)ResolvedIborFutureTrade.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()ResolvedIborFutureTrade.BuildertradedPrice(TradedPrice tradedPrice)Sets the price that was traded, together with the trade date, optional.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedIborFutureTrade>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFutureTrade>
-
set
public ResolvedIborFutureTrade.Builder set(String propertyName, Object newValue)
-
set
public ResolvedIborFutureTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedIborFutureTrade>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFutureTrade>
-
build
public ResolvedIborFutureTrade build()
-
info
public ResolvedIborFutureTrade.Builder info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.This allows additional information to be attached.
- Parameters:
info- the new value, not null- Returns:
- this, for chaining, not null
-
product
public ResolvedIborFutureTrade.Builder product(ResolvedIborFuture product)
Sets the future that was traded.The product captures the contracted financial details of the trade.
- Parameters:
product- the new value, not null- Returns:
- this, for chaining, not null
-
quantity
public ResolvedIborFutureTrade.Builder quantity(double quantity)
Sets the quantity that was traded.This is the number of contracts that were traded. This will be positive if buying and negative if selling.
- Parameters:
quantity- the new value- Returns:
- this, for chaining, not null
-
tradedPrice
public ResolvedIborFutureTrade.Builder tradedPrice(TradedPrice tradedPrice)
Sets the price that was traded, together with the trade date, optional.This is the price agreed when the trade occurred, in decimal form. Strata uses decimal prices for Ibor futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.
This is optional to allow the class to be used to price both trades and positions. When the instance represents a trade, the traded price should be present. When the instance represents a position, the traded price should be empty.
- Parameters:
tradedPrice- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFutureTrade>
-
-