public final class ColumnHeader extends Object implements org.joda.beans.ImmutableBean
CalculationRunner provides the ability to calculate a grid of results
for a given set targets and columns. This defines the columns in the results.
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnHeader.Meta
The meta-bean for
ColumnHeader. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Optional<Currency> |
getCurrency()
Gets the currency of the result.
|
Measure |
getMeasure()
Gets the measure that was calculated.
|
ColumnName |
getName()
Gets the column name.
|
int |
hashCode() |
static ColumnHeader.Meta |
meta()
The meta-bean for
ColumnHeader. |
ColumnHeader.Meta |
metaBean() |
static ColumnHeader |
of(ColumnName name,
Measure measure)
Obtains an instance from the name and measure.
|
static ColumnHeader |
of(ColumnName name,
Measure measure,
Currency currency)
Obtains an instance from the name, measure and currency.
|
String |
toString() |
public static ColumnHeader of(ColumnName name, Measure measure)
name - the namemeasure - the measurepublic static ColumnHeader of(ColumnName name, Measure measure, Currency currency)
name - the namemeasure - the measurecurrency - the currencypublic static ColumnHeader.Meta meta()
ColumnHeader.public ColumnHeader.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic ColumnName getName()
This is the name of the column, and should be unique in a list of columns.
public Measure getMeasure()
This defines the calculation that was performed, such as 'PresentValue' or 'ParRate'.
public Optional<Currency> getCurrency()
If the measure can be automatically converted
to a different currency, and a specific ReportingCurrency was specified,
then the currency will be stored here.
If the reporting currency is "natural", or the result has no currency, then this will be empty.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.