public final class SecurityInfoBuilder extends Object
SecurityInfo.
This builder allows a SecurityInfo to be created.
| Modifier and Type | Method and Description |
|---|---|
<T> SecurityInfoBuilder |
addAttribute(AttributeType<T> attributeType,
T attributeValue)
Adds a security attribute to the map of attributes.
|
SecurityInfo |
build()
Builds the security information.
|
SecurityInfoBuilder |
id(SecurityId id)
Sets the security identifier.
|
SecurityInfoBuilder |
priceInfo(SecurityPriceInfo priceInfo)
Sets the information about the security price.
|
public SecurityInfoBuilder id(SecurityId id)
This identifier uniquely identifies the security within the system.
id - the identifierpublic SecurityInfoBuilder priceInfo(SecurityPriceInfo priceInfo)
This provides information about the security price. This can be used to convert the price into a monetary value.
priceInfo - the price infopublic <T> SecurityInfoBuilder addAttribute(AttributeType<T> attributeType, T attributeValue)
The attribute is added using Map.put(type, value) semantics.
T - the type of the valueattributeType - the type providing meaning to the valueattributeValue - the valuepublic SecurityInfo build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.