public interface FloatingRate extends Named
This provides an abstraction above FloatingRateName and FloatingRateIndex.
This allows code to work with a specific index, IborIndex, OvernightIndex and PriceIndex,
or with the index group, represented by FloatingRateName, using instanceof
All implementations of this interface must be immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
Currency |
getCurrency()
Gets the associated currency.
|
FloatingRateName |
getFloatingRateName()
Gets the associated floating rate name.
|
static FloatingRate |
parse(String indexStr)
Parses a string, handling various different formats.
|
static Optional<FloatingRate> |
tryParse(String indexStr)
Parses a string, handling various different formats.
|
static FloatingRate parse(String indexStr)
This tries a number of ways to parse the input:
indexStr - the index string to parseIllegalArgumentException - if the name is not knownstatic Optional<FloatingRate> tryParse(String indexStr)
This tries a number of ways to parse the input:
indexStr - the index string to parseCurrency getCurrency()
FloatingRateName getFloatingRateName()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.