public final class SimpleSurfaceParameterMetadata extends Object implements ParameterMetadata, org.joda.beans.ImmutableBean, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSurfaceParameterMetadata.Meta
The meta-bean for
SimpleSurfaceParameterMetadata . |
Modifier and Type | Method and 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.
|
double |
getYValue()
Gets the y-value.
|
ValueType |
getYValueType()
Gets the type of the y-value.
|
int |
hashCode() |
static SimpleSurfaceParameterMetadata.Meta |
meta()
The meta-bean for
SimpleSurfaceParameterMetadata . |
SimpleSurfaceParameterMetadata.Meta |
metaBean() |
static SimpleSurfaceParameterMetadata |
of(ValueType xValueType,
double xValue,
ValueType yValueType,
double yValue)
Obtains an instance specifying information about the x-value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
empty, listOfEmpty
public static SimpleSurfaceParameterMetadata of(ValueType xValueType, double xValue, ValueType yValueType, double yValue)
xValueType
- the x-value typexValue
- the x-valueyValueType
- the x-value typeyValue
- the x-valuepublic String getLabel()
ParameterMetadata
It is intended that the label is relatively short, however there is no formal restriction.
getLabel
in interface ParameterMetadata
public String getIdentifier()
ParameterMetadata
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:
hashCode()
and equals()
.getIdentifier
in interface ParameterMetadata
public static SimpleSurfaceParameterMetadata.Meta meta()
SimpleSurfaceParameterMetadata
.public SimpleSurfaceParameterMetadata.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public ValueType getXValueType()
public double getXValue()
public ValueType getYValueType()
public double getYValue()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.