T - the type of the associated valuepublic final class SurfaceInfoType<T> extends TypedString<SurfaceInfoType<T>>
Additional surface information is stored in SurfaceMetadata.
It provides the ability to associate arbitrary information with a surface in a key-value map.
For example, it might be used to provide information about one of the axes.
Applications that wish to use surface information should declare a static
constant declaring the SurfaceInfoType instance, the type parameter
and an UpperCamelCase name. For example:
public static final SurfaceInfoType<String> OWNER = SurfaceInfoType.of("Owner");
| Modifier and Type | Field and Description |
|---|---|
static SurfaceInfoType<DayCount> |
DAY_COUNT
Key used to access information about the
DayCount. |
static SurfaceInfoType<MoneynessType> |
MONEYNESS_TYPE
Key used to access information about the type of moneyness.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> SurfaceInfoType<T> |
of(String name)
Obtains an instance from the specified name.
|
compareTo, equals, getName, hashCode, toStringpublic static final SurfaceInfoType<DayCount> DAY_COUNT
DayCount.public static final SurfaceInfoType<MoneynessType> MONEYNESS_TYPE
public static <T> SurfaceInfoType<T> of(String name)
The name may contain any character, but must not be empty.
T - the type associated with the infoname - the nameCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.