Class Table
java.lang.Object
net.neoforged.testframework.impl.md.Table
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_WIDTHpublic static final int DEFAULT_MINIMUM_COLUMN_WIDTH- See Also:
 
- 
rows
- 
alignments
- 
firstRowIsHeaderprivate final boolean firstRowIsHeader
- 
minimumColumnWidthprivate final int minimumColumnWidth
- 
trimmingIndicator
 
- 
- 
Constructor Details- 
Table
 
- 
- 
Method Details- 
builder
- 
serialize
- 
toString
- 
trimRemoves 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
 
- 
copyReturns a copy of this table.- Returns:
- a copy of this table
 
- 
generateHeaderSeparator
- 
getColumnWidths
- 
getMaximumItemLength
- 
getAlignment
- 
getRows
- 
surroundWith
 
-