Package org.cloudsimplus.builders.tables
Class MarkdownTableColumn
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTableColumn
org.cloudsimplus.builders.tables.CsvTableColumn
org.cloudsimplus.builders.tables.MarkdownTableColumn
- All Implemented Interfaces:
TableColumn
A column of an Markdown table. The class generates the string
that represents a column in a Markdown table.
- Since:
- CloudSim Plus 6.4.3
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
Fields inherited from class org.cloudsimplus.builders.tables.CsvTableColumn
DATA_COL_SEPARATOR_FORMAT
-
Constructor Summary
ConstructorDescriptionMarkdownTableColumn
(String title) MarkdownTableColumn
(String title, String subTitle) MarkdownTableColumn
(Table table, String title) MarkdownTableColumn
(Table table, String title, String subTitle) -
Method Summary
Modifier and TypeMethodDescriptiongenerateData
(Object data) Generates the string that represents the data of the column, formatted according to theformat
.Generates the string that represents the sub-header of the column (if any), containing the column subtitle.Methods inherited from class org.cloudsimplus.builders.tables.CsvTableColumn
alignStringRight, alignStringRight, generateHeader
Methods inherited from class org.cloudsimplus.builders.tables.AbstractTableColumn
generateTitleHeader, getFormat, getIndex, getSubTitle, getTable, getTitle, isLastColumn, setFormat, setSubTitle, setTable, setTitle, toString
-
Constructor Details
-
MarkdownTableColumn
-
MarkdownTableColumn
-
MarkdownTableColumn
-
MarkdownTableColumn
-
-
Method Details
-
generateData
Description copied from class:AbstractTableColumn
Generates the string that represents the data of the column, formatted according to theformat
.- Specified by:
generateData
in interfaceTableColumn
- Overrides:
generateData
in classCsvTableColumn
- Parameters:
data
- The data of the column to be formatted- Returns:
- a string containing the formatted column data
-
generateSubtitleHeader
Description copied from interface:TableColumn
Generates the string that represents the sub-header of the column (if any), containing the column subtitle.- Specified by:
generateSubtitleHeader
in interfaceTableColumn
- Overrides:
generateSubtitleHeader
in classAbstractTableColumn
- Returns:
- the generated sub-header string
-