T
- the info class typepublic interface PortfolioItemInfoBuilder<T extends PortfolioItemInfo>
Modifier and Type | Method and Description |
---|---|
<V> PortfolioItemInfoBuilder<T> |
addAttribute(AttributeType<V> attributeType,
V attributeValue)
Adds a position attribute to the map of attributes.
|
T |
build()
Builds the position information.
|
PortfolioItemInfoBuilder<T> |
id(StandardId id)
Sets the primary identifier for the position, optional.
|
PortfolioItemInfoBuilder<T> id(StandardId id)
The identifier is used to identify the position.
id
- the identifier<V> PortfolioItemInfoBuilder<T> addAttribute(AttributeType<V> attributeType, V attributeValue)
The attribute is added using Map.put(type, value)
semantics.
V
- the type of the valueattributeType
- the type providing meaning to the valueattributeValue
- the valueT build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.