Class ResolvedTradeParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.param.ResolvedTradeParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class ResolvedTradeParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Parameter metadata based on a resolved trade and label.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResolvedTradeParameterMetadata.BuilderThe bean-builder forResolvedTradeParameterMetadata.static classResolvedTradeParameterMetadata.MetaThe meta-bean forResolvedTradeParameterMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResolvedTradeParameterMetadata.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)StringgetIdentifier()Returns an object used to identify the parameter.StringgetLabel()Gets the label that describes the parameter.ResolvedTradegetTrade()Gets the trade that describes the parameter.inthashCode()static ResolvedTradeParameterMetadata.Metameta()The meta-bean forResolvedTradeParameterMetadata.ResolvedTradeParameterMetadata.MetametaBean()static ResolvedTradeParameterMetadataof(ResolvedTrade trade, String label)Obtains an instance specifying the trade and label.ResolvedTradeParameterMetadata.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()
-
-
-
Method Detail
-
of
public static ResolvedTradeParameterMetadata of(ResolvedTrade trade, String label)
Obtains an instance specifying the trade and label.- Parameters:
trade- the resolved tradelabel- the label- Returns:
- the instance
-
getIdentifier
public String getIdentifier()
Description copied from interface:ParameterMetadataReturns an object used to identify the parameter.A good choice of identifier is one that makes sense to the user and can easily be created as part of a scenario definition. For example, many nodes types are naturally identified by a tenor.
The identifier must satisfy the following criteria:
- It must be non-null
- It should be unique within a single data set
- It should have a sensible implementation of
hashCode()andequals().
- Specified by:
getIdentifierin interfaceParameterMetadata- Returns:
- an object used to uniquely identify the parameter within the data
-
meta
public static ResolvedTradeParameterMetadata.Meta meta()
The meta-bean forResolvedTradeParameterMetadata.- Returns:
- the meta-bean, not null
-
builder
public static ResolvedTradeParameterMetadata.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public ResolvedTradeParameterMetadata.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getTrade
public ResolvedTrade getTrade()
Gets the trade that describes the parameter.- Returns:
- the value of the property, not null
-
getLabel
public String getLabel()
Gets the label that describes the parameter.- Specified by:
getLabelin interfaceParameterMetadata- Returns:
- the value of the property, not empty
-
toBuilder
public ResolvedTradeParameterMetadata.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-