Package com.opengamma.strata.product
Class PortfolioItemSummary.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
-
- com.opengamma.strata.product.PortfolioItemSummary.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<PortfolioItemSummary>
- Enclosing class:
- PortfolioItemSummary
public static final class PortfolioItemSummary.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
The bean-builder forPortfolioItemSummary
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortfolioItemSummary
build()
PortfolioItemSummary.Builder
currencies(Currency... currencies)
Sets thecurrencies
property in the builder from an array of objects.PortfolioItemSummary.Builder
currencies(Set<Currency> currencies)
Sets the currencies of the item.PortfolioItemSummary.Builder
description(String description)
Sets the description of the item.Object
get(String propertyName)
PortfolioItemSummary.Builder
id(StandardId id)
Sets the identifier of the item, optional.PortfolioItemSummary.Builder
portfolioItemType(PortfolioItemType portfolioItemType)
Sets the type of the item.PortfolioItemSummary.Builder
productType(ProductType productType)
Sets the type of the product.PortfolioItemSummary.Builder
set(String propertyName, Object newValue)
PortfolioItemSummary.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<PortfolioItemSummary>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
-
set
public PortfolioItemSummary.Builder set(String propertyName, Object newValue)
-
set
public PortfolioItemSummary.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<PortfolioItemSummary>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
-
build
public PortfolioItemSummary build()
-
id
public PortfolioItemSummary.Builder id(StandardId id)
Sets the identifier of the item, optional.- Parameters:
id
- the new value- Returns:
- this, for chaining, not null
-
portfolioItemType
public PortfolioItemSummary.Builder portfolioItemType(PortfolioItemType portfolioItemType)
Sets the type of the item.- Parameters:
portfolioItemType
- the new value, not null- Returns:
- this, for chaining, not null
-
productType
public PortfolioItemSummary.Builder productType(ProductType productType)
Sets the type of the product.- Parameters:
productType
- the new value, not null- Returns:
- this, for chaining, not null
-
currencies
public PortfolioItemSummary.Builder currencies(Set<Currency> currencies)
Sets the currencies of the item.This should include the primary currencies the item is based on, not just the payment currencies.
- Parameters:
currencies
- the new value, not null- Returns:
- this, for chaining, not null
-
currencies
public PortfolioItemSummary.Builder currencies(Currency... currencies)
Sets thecurrencies
property in the builder from an array of objects.- Parameters:
currencies
- the new value, not null- Returns:
- this, for chaining, not null
-
description
public PortfolioItemSummary.Builder description(String description)
Sets the description of the item.- Parameters:
description
- the new value, not blank- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
-
-