Class Table

java.lang.Object
com.nsdev.lettergenerator.Table

public final class Table extends Object
Convenience entry point for text tables embedded with LetterBuilder.table(com.nsdev.lettergenerator.model.block.TableBlock). The builder fixes the column count from the headers and appends rows before producing an immutable table block.
  • Method Details

    • builder

      public static TableBuilder builder(String... headers)
      Starts a table with equally weighted columns and a bold white-on-dark header row. At least one data row must be added before building.
      Parameters:
      headers - non-null header array containing at least one non-null string
      Returns:
      a new mutable table builder
      Throws:
      IllegalArgumentException - if the array is null or empty, or a header is null