public interface DataTable extends Serializable, Cloneable
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataTable.TableConvention
Possible conventions for the table.
|
| Modifier and Type | Method and Description |
|---|---|
DataTable |
addPoint(int maturity,
int termination,
double value)
Add a point to the grid of the table.
|
DataTable |
addPoints(int[] maturities,
int[] terminations,
double[] values)
Add an array of points to the table.
|
DataTable |
clone() |
boolean |
containsEntryFor(double maturity,
double termination)
Checks whether the table has an actual entry at the specified coordinates.
|
boolean |
containsEntryFor(int maturity,
int termination)
Checks whether the table has an actual entry at the specified coordinates.
|
static Map<String,Object> |
exportTable(DataTable table)
Provides an overview of the contents of this table as basic java objects sorted in an unmodifiable map.
|
DataTable.TableConvention |
getConvention()
Returns the convention the table understands its coordinates in.
|
TreeSet<Integer> |
getMaturities()
Get a sorted set view of all maturities in the table.
|
TreeSet<Integer> |
getMaturitiesForTermination(int termination)
Get a sorted set view of all maturities for a speceific termination in the table.
|
String |
getName() |
LocalDate |
getReferenceDate()
The reference date of the table.
|
SchedulePrototype |
getScheduleMetaData() |
TreeSet<Integer> |
getTerminations()
Get a sorted set view of all terminations in the table.
|
TreeSet<Integer> |
getTerminationsForMaturity(int maturity)
Get a sorted set view of all terminations for a specific maturity in the table.
|
double |
getValue(double maturity,
double termination)
Returns the value of the table at a given time.
|
double |
getValue(int maturity,
int termination)
Returns the value of the table at a given time.
|
int |
size() |
static Map<String,Object> exportTable(DataTable table)
table - The table to be exported.DataTable addPoint(int maturity, int termination, double value)
maturity - The maturity of the point as offset with respect to the reference date.termination - The termination of the point as offset with respect to the maturity date.value - The value at the point.DataTable addPoints(int[] maturities, int[] terminations, double[] values)
maturities - The maturities of the points as offset with respect to the reference date.terminations - The terminations of the points as offset with respect to the maturity date.values - The values at the points.double getValue(int maturity,
int termination)
maturity - The maturity as offset with respect to the reference date.termination - The termination as offset with respect to the maturity date.double getValue(double maturity,
double termination)
maturity - Maturity in double as year fraction with respect to reference date.termination - Termination in double as year fraction with respect to reference date.boolean containsEntryFor(int maturity,
int termination)
getValue on these coordinates as the table may interpolate/extrapolate.maturity - The maturity as offset with respect to the reference date.termination - The termination as offset with respect to the maturity date.boolean containsEntryFor(double maturity,
double termination)
getValue on these coordinates as the table may interpolate/extrapolate.maturity - Maturity in double as year fraction with respect to reference date.termination - Termination in double as year fraction with respect to reference date.TreeSet<Integer> getMaturities()
TreeSet<Integer> getTerminations()
TreeSet<Integer> getTerminationsForMaturity(int maturity)
maturity - The maturity for which to get the terminations.TreeSet<Integer> getMaturitiesForTermination(int termination)
termination - The termination for which to get the maturities.String getName()
DataTable.TableConvention getConvention()
LocalDate getReferenceDate()
DataTable clone()
int size()
SchedulePrototype getScheduleMetaData()
SchedulePrototype used by the table to convert int and double representations.Copyright © 2019. All rights reserved.