T
- the type of the market data this identifier refers topublic abstract class MarketDataName<T> extends Object implements Named, Comparable<MarketDataName<?>>
The name is used to locate an item in market data.
While a MarketDataId
is unique within a system, a MarketDataName
is not.
However, it is intended to be unique within any single coherent data set.
For example, a curve group contains a set of curves, and within the group the name is unique.
But the market data system may contain many curve groups where the same name appears in each group.
The MarketDataId
includes both the group name and curve name in order to ensure uniqueness.
Constructor and Description |
---|
MarketDataName() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MarketDataName<?> other)
Compares this name to another.
|
boolean |
equals(Object obj)
Checks if this instance equals another.
|
abstract Class<T> |
getMarketDataType()
Gets the type of data this name refers to.
|
abstract String |
getName()
Gets the market data name.
|
int |
hashCode()
Returns a suitable hash code.
|
String |
toString()
Returns the name.
|
public abstract String getName()
The name must be unique within any single coherent data set.
public abstract Class<T> getMarketDataType()
public int compareTo(MarketDataName<?> other)
Instances are compared in alphabetical order based on the name, taking into account the implementation type.
compareTo
in interface Comparable<MarketDataName<?>>
other
- the object to compare topublic final boolean equals(Object obj)
Instances are compared based on the name and market data type.
public final int hashCode()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.