public static final class ImmutableFxIndex.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFxIndex>
ImmutableFxIndex.| Modifier and Type | Method and Description |
|---|---|
ImmutableFxIndex |
build() |
ImmutableFxIndex.Builder |
currencyPair(CurrencyPair currencyPair)
Sets the currency pair.
|
ImmutableFxIndex.Builder |
fixingCalendar(HolidayCalendarId fixingCalendar)
Sets the calendar that determines which dates are fixing dates.
|
ImmutableFxIndex.Builder |
fixingDateOffset(DaysAdjustment fixingDateOffset)
Sets the adjustment applied to the maturity date to obtain the fixing date.
|
Object |
get(String propertyName) |
ImmutableFxIndex.Builder |
maturityDateOffset(DaysAdjustment maturityDateOffset)
Sets the adjustment applied to the fixing date to obtain the maturity date.
|
ImmutableFxIndex.Builder |
name(String name)
Sets the index name, such as 'EUR/GBP-ECB'.
|
ImmutableFxIndex.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ImmutableFxIndex.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ImmutableFxIndex>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFxIndex>public ImmutableFxIndex.Builder set(String propertyName, Object newValue)
public ImmutableFxIndex.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ImmutableFxIndex>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFxIndex>public ImmutableFxIndex build()
public ImmutableFxIndex.Builder name(String name)
name - the new value, not nullpublic ImmutableFxIndex.Builder currencyPair(CurrencyPair currencyPair)
An index defines an FX rate in a single direction, such as from EUR to USD. This currency pair defines that direction.
In most cases, the same index can be used to convert in both directions by taking the rate or the reciprocal as necessary.
currencyPair - the new value, not nullpublic ImmutableFxIndex.Builder fixingCalendar(HolidayCalendarId fixingCalendar)
The fixing date is when the rate is determined.
fixingCalendar - the new value, not nullpublic ImmutableFxIndex.Builder fixingDateOffset(DaysAdjustment fixingDateOffset)
The maturity date is the start date of the indexed deposit. In most cases, the fixing date is 2 days before the maturity date.
fixingDateOffset - the new value, not nullpublic ImmutableFxIndex.Builder maturityDateOffset(DaysAdjustment maturityDateOffset)
The maturity date is the start date of the indexed deposit. In most cases, the maturity date is 2 days after the fixing date.
maturityDateOffset - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableFxIndex>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.