Class ResolvedIborFuture.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFuture>
-
- com.opengamma.strata.product.index.ResolvedIborFuture.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ResolvedIborFuture>
- Enclosing class:
- ResolvedIborFuture
public static final class ResolvedIborFuture.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFuture>
The bean-builder forResolvedIborFuture.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedIborFuture.BuilderaccrualFactor(double accrualFactor)Sets the accrual factor, defaulted from the index if not set.ResolvedIborFuturebuild()ResolvedIborFuture.Buildercurrency(Currency currency)Sets the currency that the future is traded in.Objectget(String propertyName)ResolvedIborFuture.BuilderiborRate(IborRateComputation iborRate)Sets the Ibor rate observation.ResolvedIborFuture.Buildernotional(double notional)Sets the notional amount.ResolvedIborFuture.Builderrounding(Rounding rounding)Sets the definition of how to round the futures price, defaulted to no rounding.ResolvedIborFuture.BuildersecurityId(SecurityId securityId)Sets the security identifier.ResolvedIborFuture.Builderset(String propertyName, Object newValue)ResolvedIborFuture.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ResolvedIborFuture>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFuture>
-
set
public ResolvedIborFuture.Builder set(String propertyName, Object newValue)
-
set
public ResolvedIborFuture.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ResolvedIborFuture>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedIborFuture>
-
build
public ResolvedIborFuture build()
-
securityId
public ResolvedIborFuture.Builder securityId(SecurityId securityId)
Sets the security identifier.This identifier uniquely identifies the security within the system.
- Parameters:
securityId- the new value, not null- Returns:
- this, for chaining, not null
-
currency
public ResolvedIborFuture.Builder currency(Currency currency)
Sets the currency that the future is traded in.- Parameters:
currency- the new value, not null- Returns:
- this, for chaining, not null
-
notional
public ResolvedIborFuture.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 is specified by
currency.- Parameters:
notional- the new value- Returns:
- this, for chaining, not null
-
accrualFactor
public ResolvedIborFuture.Builder accrualFactor(double accrualFactor)
Sets the accrual factor, defaulted from the index if not set.This is the year fraction of the contract, typically 0.25 for a 3 month deposit.
When building, this will default to the number of months in the index divided by 12 if not specified. However, if the index is not month-based, no defaulting will occur.
- Parameters:
accrualFactor- the new value- Returns:
- this, for chaining, not null
-
iborRate
public ResolvedIborFuture.Builder iborRate(IborRateComputation iborRate)
Sets the Ibor rate observation.The future is based on this index. It will be a well known market index such as 'USD-LIBOR-3M'.
- Parameters:
iborRate- the new value, not null- Returns:
- this, for chaining, not null
-
rounding
public ResolvedIborFuture.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<ResolvedIborFuture>
-
-