public static final class PortfolioItemSummary.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>
PortfolioItemSummary.| Modifier and Type | Method and Description |
|---|---|
PortfolioItemSummary |
build() |
PortfolioItemSummary.Builder |
currencies(Currency... currencies)
Sets the
currencies 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(org.joda.beans.MetaProperty<?> property,
Object value) |
PortfolioItemSummary.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<PortfolioItemSummary>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>public PortfolioItemSummary.Builder set(String propertyName, Object newValue)
public PortfolioItemSummary.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<PortfolioItemSummary>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>public PortfolioItemSummary build()
public PortfolioItemSummary.Builder id(StandardId id)
id - the new valuepublic PortfolioItemSummary.Builder portfolioItemType(PortfolioItemType portfolioItemType)
portfolioItemType - the new value, not nullpublic PortfolioItemSummary.Builder productType(ProductType productType)
productType - the new value, not nullpublic PortfolioItemSummary.Builder currencies(Set<Currency> currencies)
This should include the primary currencies the item is based on, not just the payment currencies.
currencies - the new value, not nullpublic PortfolioItemSummary.Builder currencies(Currency... currencies)
currencies property in the builder
from an array of objects.currencies - the new value, not nullpublic PortfolioItemSummary.Builder description(String description)
description - the new value, not blankpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<PortfolioItemSummary>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.