Class SimpleCurveParameterMetadata
- java.lang.Object
-
- com.opengamma.strata.market.curve.SimpleCurveParameterMetadata
-
- All Implemented Interfaces:
ParameterMetadata
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class SimpleCurveParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Simple parameter metadata containing the x value and type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleCurveParameterMetadata.Meta
The meta-bean forSimpleCurveParameterMetadata
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getIdentifier()
Returns an object used to identify the parameter.String
getLabel()
Gets the label that describes the parameter.double
getXValue()
Gets the x-value.ValueType
getXValueType()
Gets the type of the x-value.int
hashCode()
static SimpleCurveParameterMetadata.Meta
meta()
The meta-bean forSimpleCurveParameterMetadata
.SimpleCurveParameterMetadata.Meta
metaBean()
static SimpleCurveParameterMetadata
of(ValueType xValueType, double xValue)
Obtains an instance specifying information about the x-value.String
toString()
-
-
-
Method Detail
-
of
public static SimpleCurveParameterMetadata of(ValueType xValueType, double xValue)
Obtains an instance specifying information about the x-value.- Parameters:
xValueType
- the x-value typexValue
- the x-value- Returns:
- the parameter metadata based on the date and label
-
getLabel
public String getLabel()
Description copied from interface:ParameterMetadata
Gets the label that describes the parameter.It is intended that the label is relatively short, however there is no formal restriction.
- Specified by:
getLabel
in interfaceParameterMetadata
- Returns:
- the label
-
getIdentifier
public String getIdentifier()
Description copied from interface:ParameterMetadata
Returns 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:
getIdentifier
in interfaceParameterMetadata
- Returns:
- an object used to uniquely identify the parameter within the data
-
meta
public static SimpleCurveParameterMetadata.Meta meta()
The meta-bean forSimpleCurveParameterMetadata
.- Returns:
- the meta-bean, not null
-
metaBean
public SimpleCurveParameterMetadata.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getXValueType
public ValueType getXValueType()
Gets the type of the x-value.- Returns:
- the value of the property, not null
-
getXValue
public double getXValue()
Gets the x-value.- Returns:
- the value of the property
-
-