| Package | Description |
|---|---|
| com.opengamma.strata.product |
Entity objects describing trades and products in financial markets.
|
| com.opengamma.strata.product.etd |
Entity objects describing Exchange Traded Derivatives (ETDs).
|
| Modifier and Type | Field and Description |
|---|---|
static AttributeType<BuySell> |
AttributeType.BUY_SELL
Key used to indicate logical Buy/Sell.
|
static AttributeType<CcpId> |
AttributeType.CCP
Key used to access the CCP.
|
static AttributeType<String> |
AttributeType.DESCRIPTION
Key used to access the description.
|
static AttributeType<String> |
AttributeType.NAME
Key used to access the name.
|
| Modifier and Type | Method and Description |
|---|---|
<R> AttributeType<R> |
AttributeType.captureWildcard()
Captures the wildcard type.
|
AttributeType<T> |
AttributeType.normalized()
Returns the normalized form of the attribute type.
|
static <T> AttributeType<T> |
AttributeType.of(String name)
Obtains an instance from the specified name, which should be pre-registered.
|
static <T> AttributeType<T> |
AttributeType.registerInstance(String name,
Class<T> type,
String... aliases)
Registers an instance for the specified name and type.
|
| Modifier and Type | Method and Description |
|---|---|
org.joda.beans.MetaProperty<ImmutableMap<AttributeType<?>,Object>> |
PositionInfo.Meta.attributes()
The meta-property for the
attributes property. |
org.joda.beans.MetaProperty<ImmutableMap<AttributeType<?>,Object>> |
TradeInfo.Meta.attributes()
The meta-property for the
attributes property. |
org.joda.beans.MetaProperty<ImmutableMap<AttributeType<?>,Object>> |
SecurityInfo.Meta.attributes()
The meta-property for the
attributes property. |
ImmutableMap<AttributeType<?>,Object> |
PositionInfo.getAttributes()
Gets the position attributes.
|
ImmutableMap<AttributeType<?>,Object> |
TradeInfo.getAttributes()
Gets the trade attributes.
|
ImmutableMap<AttributeType<?>,Object> |
SimpleAttributes.getAttributes()
Gets the attributes.
|
ImmutableMap<AttributeType<?>,Object> |
SecurityInfo.getAttributes()
Gets the security attributes.
|
ImmutableSet<AttributeType<?>> |
PositionInfo.getAttributeTypes() |
ImmutableSet<AttributeType<?>> |
PortfolioItemInfo.getAttributeTypes() |
default ImmutableSet<AttributeType<?>> |
Attributes.getAttributeTypes()
Gets the attribute types that are available.
|
ImmutableSet<AttributeType<?>> |
TradeInfo.getAttributeTypes() |
ImmutableSet<AttributeType<?>> |
SimpleAttributes.getAttributeTypes() |
ImmutableSet<AttributeType<?>> |
SecurityInfo.getAttributeTypes() |
| Modifier and Type | Method and Description |
|---|---|
<T> PositionInfoBuilder |
PositionInfoBuilder.addAttribute(AttributeType<T> attributeType,
T attributeValue)
Adds a position attribute to the map of attributes.
|
<T> TradeInfoBuilder |
TradeInfoBuilder.addAttribute(AttributeType<T> attributeType,
T attributeValue)
Adds a trade attribute to the map of attributes.
|
<T> SecurityInfoBuilder |
SecurityInfoBuilder.addAttribute(AttributeType<T> attributeType,
T attributeValue)
Adds a security attribute to the map of attributes.
|
<V> PortfolioItemInfoBuilder<T> |
PortfolioItemInfoBuilder.addAttribute(AttributeType<V> attributeType,
V attributeValue)
Adds a position attribute to the map of attributes.
|
int |
AttributeType.compareTo(AttributeType<T> other)
Compares this type to another.
|
default <T> boolean |
Attributes.containsAttribute(AttributeType<T> type)
Determines if an attribute associated with the specified type is present.
|
default <T> boolean |
Attributes.containsAttribute(AttributeType<T> type,
T attributeValue)
Determines if an attribute associated with the specified type is present and its value is
equal
to the supplied value. |
<T> Optional<T> |
PositionInfo.findAttribute(AttributeType<T> type) |
<T> Optional<T> |
Attributes.findAttribute(AttributeType<T> type)
Finds the attribute associated with the specified type.
|
<T> Optional<T> |
TradeInfo.findAttribute(AttributeType<T> type) |
<T> Optional<T> |
SimpleAttributes.findAttribute(AttributeType<T> type) |
<T> Optional<T> |
SecurityInfo.findAttribute(AttributeType<T> type) |
default <T> T |
Attributes.getAttribute(AttributeType<T> type)
Gets the attribute associated with the specified type.
|
static <T> PortfolioItemInfo |
PortfolioItemInfo.of(AttributeType<T> type,
T value)
Obtains an instance with a single attribute.
|
static <T> Attributes |
Attributes.of(AttributeType<T> type,
T value)
Obtains an instance with a single attribute.
|
static <T> SimpleAttributes |
SimpleAttributes.of(AttributeType<T> type,
T value)
Obtains an instance with a single attribute.
|
<T> PositionInfo |
PositionInfo.withAttribute(AttributeType<T> type,
T value) |
<T> PortfolioItemInfo |
PortfolioItemInfo.withAttribute(AttributeType<T> type,
T value) |
<T> Attributes |
Attributes.withAttribute(AttributeType<T> type,
T value)
Returns a copy of this instance with the attribute added.
|
<T> TradeInfo |
TradeInfo.withAttribute(AttributeType<T> type,
T value) |
<T> SimpleAttributes |
SimpleAttributes.withAttribute(AttributeType<T> type,
T value) |
<T> SecurityInfo |
SecurityInfo.withAttribute(AttributeType<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.beans.MetaProperty<ImmutableMap<AttributeType<?>,Object>> |
EtdContractSpec.Meta.attributes()
The meta-property for the
attributes property. |
ImmutableMap<AttributeType<?>,Object> |
EtdContractSpec.getAttributes()
Gets the attributes.
|
ImmutableSet<AttributeType<?>> |
EtdContractSpec.getAttributeTypes() |
| Modifier and Type | Method and Description |
|---|---|
<T> EtdContractSpecBuilder |
EtdContractSpecBuilder.addAttribute(AttributeType<T> attributeType,
T attributeValue)
Adds an attribute to the builder.
|
<T> Optional<T> |
EtdContractSpec.findAttribute(AttributeType<T> type) |
<T> EtdContractSpec |
EtdContractSpec.withAttribute(AttributeType<T> type,
T value) |
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.