Class IborFutureSecurity.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureSecurity>
-
- com.opengamma.strata.product.index.IborFutureSecurity.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<IborFutureSecurity>
- Enclosing class:
- IborFutureSecurity
public static final class IborFutureSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureSecurity>
The bean-builder forIborFutureSecurity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IborFutureSecuritybuild()Objectget(String propertyName)IborFutureSecurity.Builderindex(IborIndex index)Sets the underlying Ibor index.IborFutureSecurity.Builderinfo(SecurityInfo info)Sets the standard security information.IborFutureSecurity.BuilderlastTradeDate(LocalDate lastTradeDate)Sets the last date of trading.IborFutureSecurity.Buildernotional(double notional)Sets the notional amount.IborFutureSecurity.Builderrounding(Rounding rounding)Sets the definition of how to round the futures price, defaulted to no rounding.IborFutureSecurity.Builderset(String propertyName, Object newValue)IborFutureSecurity.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<IborFutureSecurity>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureSecurity>
-
set
public IborFutureSecurity.Builder set(String propertyName, Object newValue)
-
set
public IborFutureSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<IborFutureSecurity>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureSecurity>
-
build
public IborFutureSecurity build()
-
info
public IborFutureSecurity.Builder info(SecurityInfo info)
Sets the standard security information.This includes the security identifier.
- Parameters:
info- the new value, not null- Returns:
- this, for chaining, not null
-
notional
public IborFutureSecurity.Builder notional(double notional)
Sets the notional amount.This is the full notional of the deposit, such as 1 million dollars. The notional expressed here must be positive. The currency of the notional the same as the currency of the index.
- Parameters:
notional- the new value- Returns:
- this, for chaining, not null
-
lastTradeDate
public IborFutureSecurity.Builder lastTradeDate(LocalDate lastTradeDate)
Sets the last date of trading. This date is also the fixing date for the Ibor index. This is typically 2 business days before the IMM date (3rd Wednesday of the month).- Parameters:
lastTradeDate- the new value, not null- Returns:
- this, for chaining, not null
-
index
public IborFutureSecurity.Builder index(IborIndex index)
Sets the underlying Ibor index.The future is based on this index. It will be a well known market index such as 'USD-LIBOR-3M'.
- Parameters:
index- the new value, not null- Returns:
- this, for chaining, not null
-
rounding
public IborFutureSecurity.Builder rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.The price is represented in decimal form, not percentage form. As such, the decimal places expressed by the rounding refers to this decimal form. For example, the common market price of 99.7125 for a 0.2875% rate is represented as 0.997125 which has 6 decimal places.
- Parameters:
rounding- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureSecurity>
-
-