Class Table
java.lang.Object
net.neoforged.testframework.impl.md.Table
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Table.Builder
builder()
copy()
Returns a copy of this table.static String
static Alignment
getAlignment
(List<Alignment> alignments, int columnIndex) getColumnWidths
(List<TableRow<?>> rows, int minimumColumnWidth) static int
getMaximumItemLength
(List<TableRow<?>> rows, int columnIndex, int minimumColumnWidth) getRows()
static String
surroundWith
(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
-