Class Table
java.lang.Object
net.neoforged.testframework.summary.md.Table
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Table.Builderbuilder()copy()Returns a copy of this table.static Stringstatic AlignmentgetAlignment(List<Alignment> alignments, int columnIndex) getColumnWidths(List<TableRow<?>> rows, int minimumColumnWidth) static intgetMaximumItemLength(List<TableRow<?>> rows, int columnIndex, int minimumColumnWidth) getRows()static StringsurroundWith(String value, String surrounding) toString()trim(int rowsToKeep) Removes rows from the center of the table until only the requested amount of rows is left.
-
Field Details
-
SEPARATOR
- See Also:
-
WHITESPACE
- See Also:
-
DEFAULT_TRIMMING_INDICATOR
- See Also:
-
DEFAULT_MINIMUM_COLUMN_WIDTH
public static final int DEFAULT_MINIMUM_COLUMN_WIDTH- See Also:
-
rows
-
alignments
-
firstRowIsHeader
private final boolean firstRowIsHeader -
minimumColumnWidth
private final int minimumColumnWidth -
trimmingIndicator
-
-
Constructor Details
-
Table
-
-
Method Details
-
builder
-
serialize
-
toString
-
trim
Removes rows from the center of the table until only the requested amount of rows is left.- Parameters:
rowsToKeep- the amount of rows that should be kept- Returns:
- the trimmed table
-
copy
Returns a copy of this table.- Returns:
- a copy of this table
-
generateHeaderSeparator
-
getColumnWidths
-
getMaximumItemLength
-
getAlignment
-
getRows
-
surroundWith
-