Interface Index
-
- All Superinterfaces:
Named
- All Known Subinterfaces:
FloatingRateIndex
,FxIndex
,IborIndex
,OvernightIndex
,PriceIndex
,RateIndex
,SwapIndex
- All Known Implementing Classes:
ImmutableFxIndex
,ImmutableIborIndex
,ImmutableOvernightIndex
,ImmutablePriceIndex
,ImmutableSwapIndex
public interface Index extends Named
An index of values, such as LIBOR, FED FUND or daily exchange rates.An index is an agreed mechanism for determining certain financial indicators, such as exchange rate or interest rates. Most common indices are daily.
This is a marker interface, see
FxIndex
,IborIndex
andOvernightIndex
for more information.All implementations of this interface must be immutable and thread-safe.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
Gets the name that uniquely identifies this index.static Index
of(String uniqueName)
Obtains an instance from the specified unique name.
-
-
-
Method Detail
-
of
static Index of(String uniqueName)
Obtains an instance from the specified unique name.- Parameters:
uniqueName
- the unique name- Returns:
- the index
- Throws:
IllegalArgumentException
- if the name is not known
-
getName
String getName()
Gets the name that uniquely identifies this index.This name is used in serialization and can be parsed using
of(String)
.
-
-