| Package | Description |
|---|---|
| com.opengamma.strata.basics.date |
Tools for working with dates.
|
| Modifier and Type | Field and Description |
|---|---|
static MarketTenor |
MarketTenor.ON
A tenor code for Overnight, meaning from today to tomorrow.
|
static MarketTenor |
MarketTenor.SN
A tenor code for Spot-Next, meaning from the spot date to the next day.
|
static MarketTenor |
MarketTenor.SW
A tenor code for Spot-Week, meaning one week starting from the spot date.
|
static MarketTenor |
MarketTenor.TN
A tenor code for Tomorrow-Next, meaning from tomorrow to the next day.
|
| Modifier and Type | Method and Description |
|---|---|
static MarketTenor |
MarketTenor.ofSpot(Tenor tenor)
Obtains an instance from a
Tenor with spot implied. |
static MarketTenor |
MarketTenor.ofSpotDays(int days)
Obtains an instance from a number of days from spot.
|
static MarketTenor |
MarketTenor.ofSpotMonths(int months)
Obtains an instance from a number of months from spot.
|
static MarketTenor |
MarketTenor.ofSpotYears(int years)
Obtains an instance from a number of years from spot.
|
static MarketTenor |
MarketTenor.parse(String toParse)
Parses a formatted string representing the market tenor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MarketTenor.compareTo(MarketTenor other)
Compares this market tenor to another market tenor.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.