Class FormatSettings<T>
- java.lang.Object
-
- com.opengamma.strata.report.framework.format.FormatSettings<T>
-
- Type Parameters:
T
- the type of value to which the settings apply
- All Implemented Interfaces:
org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class FormatSettings<T> extends Object implements org.joda.beans.ImmutableBean
Contains formatting settings for a specific type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FormatSettings.Meta<T>
The meta-bean forFormatSettings
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
FormatCategory
getCategory()
Gets the category of this type.ValueFormatter<T>
getFormatter()
Gets the formatter to use to convert this type into a string.int
hashCode()
static FormatSettings.Meta
meta()
The meta-bean forFormatSettings
.FormatSettings.Meta<T>
metaBean()
static <R> FormatSettings.Meta<R>
metaFormatSettings(Class<R> cls)
The meta-bean forFormatSettings
.static <T> FormatSettings<T>
of(FormatCategory category, ValueFormatter<T> formatter)
Obtains settings from category and formatter.String
toString()
-
-
-
Method Detail
-
of
public static <T> FormatSettings<T> of(FormatCategory category, ValueFormatter<T> formatter)
Obtains settings from category and formatter.- Type Parameters:
T
- the type of the value- Parameters:
category
- the category of the typeformatter
- the formatter the use for the type- Returns:
- the format settings
-
meta
public static FormatSettings.Meta meta()
The meta-bean forFormatSettings
.- Returns:
- the meta-bean, not null
-
metaFormatSettings
public static <R> FormatSettings.Meta<R> metaFormatSettings(Class<R> cls)
The meta-bean forFormatSettings
.- Type Parameters:
R
- the bean's generic type- Parameters:
cls
- the bean's generic type- Returns:
- the meta-bean, not null
-
metaBean
public FormatSettings.Meta<T> metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getCategory
public FormatCategory getCategory()
Gets the category of this type.- Returns:
- the value of the property, not null
-
getFormatter
public ValueFormatter<T> getFormatter()
Gets the formatter to use to convert this type into a string.- Returns:
- the value of the property, not null
-
-