Class ImmutablePriceIndex.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutablePriceIndex>
-
- com.opengamma.strata.basics.index.ImmutablePriceIndex.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<ImmutablePriceIndex>
- Enclosing class:
- ImmutablePriceIndex
public static final class ImmutablePriceIndex.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutablePriceIndex>
The bean-builder forImmutablePriceIndex.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutablePriceIndex.Builderactive(boolean active)Sets whether the index is active, defaulted to true.ImmutablePriceIndexbuild()ImmutablePriceIndex.Buildercurrency(Currency currency)Sets the currency of the index.Objectget(String propertyName)ImmutablePriceIndex.Buildername(String name)Sets the index name, such as 'GB-HICP'.ImmutablePriceIndex.BuilderpublicationFrequency(Frequency publicationFrequency)Sets the publication frequency of the index.ImmutablePriceIndex.Builderregion(Country region)Sets the region of the index.ImmutablePriceIndex.Builderset(String propertyName, Object newValue)ImmutablePriceIndex.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<ImmutablePriceIndex>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutablePriceIndex>
-
set
public ImmutablePriceIndex.Builder set(String propertyName, Object newValue)
-
set
public ImmutablePriceIndex.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<ImmutablePriceIndex>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutablePriceIndex>
-
build
public ImmutablePriceIndex build()
-
name
public ImmutablePriceIndex.Builder name(String name)
Sets the index name, such as 'GB-HICP'.- Parameters:
name- the new value, not null- Returns:
- this, for chaining, not null
-
region
public ImmutablePriceIndex.Builder region(Country region)
Sets the region of the index.- Parameters:
region- the new value, not null- Returns:
- this, for chaining, not null
-
currency
public ImmutablePriceIndex.Builder currency(Currency currency)
Sets the currency of the index.- Parameters:
currency- the new value, not null- Returns:
- this, for chaining, not null
-
active
public ImmutablePriceIndex.Builder active(boolean active)
Sets whether the index is active, defaulted to true.Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.
- Parameters:
active- the new value- Returns:
- this, for chaining, not null
-
publicationFrequency
public ImmutablePriceIndex.Builder publicationFrequency(Frequency publicationFrequency)
Sets the publication frequency of the index. Most price indices are published monthly, but some are published quarterly.- Parameters:
publicationFrequency- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<ImmutablePriceIndex>
-
-