public interface PortfolioItem extends CalculationTarget
| Modifier and Type | Method and Description |
|---|---|
default Optional<StandardId> |
getId()
Gets the primary identifier for the portfolio item, optional.
|
PortfolioItemInfo |
getInfo()
Gets the additional information about the portfolio item.
|
PortfolioItemSummary |
summarize()
Summarizes the portfolio item.
|
default PortfolioItem |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
PortfolioItemInfo getInfo()
default Optional<StandardId> getId()
The identifier is used to identify the portfolio item. It will typically be an identifier in an external data system.
A portfolio item may have multiple active identifiers. Any identifier may be chosen here. Certain uses of the identifier, such as storage in a database, require that the identifier does not change over time, and this should be considered best practice.
default PortfolioItem withInfo(PortfolioItemInfo info)
info - the new infoPortfolioItemSummary summarize()
This provides a summary, including a human readable description.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.