Package com.opengamma.strata.calc
Class ColumnName
- java.lang.Object
-
- com.opengamma.strata.collect.TypedString<ColumnName>
-
- com.opengamma.strata.calc.ColumnName
-
- All Implemented Interfaces:
Named
,Serializable
,Comparable<ColumnName>
public final class ColumnName extends TypedString<ColumnName>
The name of a column in the grid of calculation results.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColumnName
of(Measure measure)
Obtains an instance from the specified measure.static ColumnName
of(String name)
Obtains an instance from the specified name.
-
-
-
Method Detail
-
of
public static ColumnName of(String name)
Obtains an instance from the specified name.Column names may contain any character, but must not be empty.
- Parameters:
name
- the name of the column- Returns:
- a column with the specified name
-
of
public static ColumnName of(Measure measure)
Obtains an instance from the specified measure.The column name will be the same as the name of the measure.
- Parameters:
measure
- the measure to extract the name from- Returns:
- a column with the same name as the measure
-
-