public static final class ImmutableOvernightIndex.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableOvernightIndex>
ImmutableOvernightIndex.| Modifier and Type | Method and Description |
|---|---|
ImmutableOvernightIndex.Builder |
active(boolean active)
Sets whether the index is active, defaulted to true.
|
ImmutableOvernightIndex |
build() |
ImmutableOvernightIndex.Builder |
currency(Currency currency)
Sets the currency of the index.
|
ImmutableOvernightIndex.Builder |
dayCount(DayCount dayCount)
Sets the day count convention.
|
ImmutableOvernightIndex.Builder |
defaultFixedLegDayCount(DayCount defaultFixedLegDayCount)
Sets the default day count convention for the associated fixed leg.
|
ImmutableOvernightIndex.Builder |
effectiveDateOffset(int effectiveDateOffset)
Sets the number of days to add to the fixing date to obtain the effective date.
|
ImmutableOvernightIndex.Builder |
fixingCalendar(HolidayCalendarId fixingCalendar)
Sets the calendar that the index uses.
|
Object |
get(String propertyName) |
ImmutableOvernightIndex.Builder |
name(String name)
Sets the index name, such as 'GBP-SONIA'.
|
ImmutableOvernightIndex.Builder |
publicationDateOffset(int publicationDateOffset)
Sets the number of days to add to the fixing date to obtain the publication date.
|
ImmutableOvernightIndex.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ImmutableOvernightIndex.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ImmutableOvernightIndex>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableOvernightIndex>public ImmutableOvernightIndex.Builder set(String propertyName, Object newValue)
public ImmutableOvernightIndex.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ImmutableOvernightIndex>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableOvernightIndex>public ImmutableOvernightIndex build()
public ImmutableOvernightIndex.Builder name(String name)
name - the new value, not nullpublic ImmutableOvernightIndex.Builder currency(Currency currency)
currency - the new value, not nullpublic ImmutableOvernightIndex.Builder active(boolean active)
Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.
active - the new valuepublic ImmutableOvernightIndex.Builder fixingCalendar(HolidayCalendarId fixingCalendar)
All dates are calculated with reference to the same calendar.
fixingCalendar - the new value, not nullpublic ImmutableOvernightIndex.Builder publicationDateOffset(int publicationDateOffset)
In most cases, the fixing rate is available on the fixing date. In a few cases, publication of the fixing rate is delayed until the following business day. This property is zero if publication is on the fixing date, or one if it is the next day.
publicationDateOffset - the new value, not nullpublic ImmutableOvernightIndex.Builder effectiveDateOffset(int effectiveDateOffset)
In most cases, the settlement date and start of the implied deposit is on the fixing date. In a few cases, the settlement date is the following business day. This property is zero if settlement is on the fixing date, or one if it is the next day. Maturity is always one business day after the settlement date.
effectiveDateOffset - the new value, not nullpublic ImmutableOvernightIndex.Builder dayCount(DayCount dayCount)
dayCount - the new value, not nullpublic ImmutableOvernightIndex.Builder defaultFixedLegDayCount(DayCount defaultFixedLegDayCount)
A rate index is often paid against a fixed leg, such as in a vanilla Swap. The day count convention of the fixed leg often differs from that of the index, and the default is value is available here.
defaultFixedLegDayCount - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutableOvernightIndex>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.