public final class PortfolioItemSummary extends Object implements Described, org.joda.beans.ImmutableBean, Serializable
This can be used to display a summary of a portfolio to a user.
| Modifier and Type | Class and Description |
|---|---|
static class |
PortfolioItemSummary.Builder
The bean-builder for
PortfolioItemSummary. |
| Modifier and Type | Method and Description |
|---|---|
static PortfolioItemSummary.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
ImmutableSet<Currency> |
getCurrencies()
Gets the currencies of the item.
|
String |
getDescription()
Gets the description of the item.
|
Optional<StandardId> |
getId()
Gets the identifier of the item, optional.
|
PortfolioItemType |
getPortfolioItemType()
Gets the type of the item.
|
ProductType |
getProductType()
Gets the type of the product.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<PortfolioItemSummary> |
meta()
The meta-bean for
PortfolioItemSummary. |
org.joda.beans.TypedMetaBean<PortfolioItemSummary> |
metaBean() |
static PortfolioItemSummary |
of(StandardId id,
PortfolioItemType portfolioItemType,
ProductType productType,
Set<Currency> currencies,
String description)
Obtains an instance.
|
PortfolioItemSummary.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static org.joda.beans.TypedMetaBean<PortfolioItemSummary> meta()
PortfolioItemSummary.public static PortfolioItemSummary of(StandardId id, PortfolioItemType portfolioItemType, ProductType productType, Set<Currency> currencies, String description)
id - the value of the propertyportfolioItemType - the value of the property, not nullproductType - the value of the property, not nullcurrencies - the value of the property, not nulldescription - the value of the property, not blankpublic static PortfolioItemSummary.Builder builder()
public org.joda.beans.TypedMetaBean<PortfolioItemSummary> metaBean()
metaBean in interface org.joda.beans.Beanpublic Optional<StandardId> getId()
public PortfolioItemType getPortfolioItemType()
public ProductType getProductType()
public ImmutableSet<Currency> getCurrencies()
This should include the primary currencies the item is based on, not just the payment currencies.
public String getDescription()
getDescription in interface Describedpublic PortfolioItemSummary.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.