java.lang.Object
net.neoforged.testframework.summary.md.Table

public final class Table extends Object
  • 字段详细资料

    • SEPARATOR

      public static final String SEPARATOR
      另请参阅:
    • WHITESPACE

      public static final String WHITESPACE
      另请参阅:
    • DEFAULT_TRIMMING_INDICATOR

      public static final String DEFAULT_TRIMMING_INDICATOR
      另请参阅:
    • DEFAULT_MINIMUM_COLUMN_WIDTH

      public static final int DEFAULT_MINIMUM_COLUMN_WIDTH
      另请参阅:
    • rows

      private final List<TableRow<?>> rows
    • alignments

      private final List<Alignment> alignments
    • firstRowIsHeader

      private final boolean firstRowIsHeader
    • minimumColumnWidth

      private final int minimumColumnWidth
    • trimmingIndicator

      private final String trimmingIndicator
  • 构造器详细资料

  • 方法详细资料

    • builder

      public static Table.Builder builder()
    • serialize

      public String serialize()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • trim

      public Table trim(int rowsToKeep)
      Removes rows from the center of the table until only the requested amount of rows is left.
      参数:
      rowsToKeep - the amount of rows that should be kept
      返回:
      the trimmed table
    • copy

      public Table copy()
      返回 a copy of this table。
      返回:
      a copy of this table
    • generateHeaderSeparator

      public static String generateHeaderSeparator(Map<Integer,Integer> columnWidths, List<Alignment> alignments)
    • getColumnWidths

      public static Map<Integer,Integer> getColumnWidths(List<TableRow<?>> rows, int minimumColumnWidth)
    • getMaximumItemLength

      public static int getMaximumItemLength(List<TableRow<?>> rows, int columnIndex, int minimumColumnWidth)
    • getAlignment

      public static Alignment getAlignment(List<Alignment> alignments, int columnIndex)
    • getRows

      public List<TableRow<?>> getRows()
    • surroundWith

      public static String surroundWith(String value, String surrounding)