Class TableBuilder

java.lang.Object
com.illumon.iris.db.v2.utils.TableBuilder

public class TableBuilder
extends Object
Class to aid in building Tables from a TableDefinition.
  • Constructor Details

  • Method Details

    • rowCount

      public int rowCount()
      returns the number of rows the table has
      Returns:
      the size of the row List
    • addRow

      public void addRow​(Object... items)
      Adds a row to the table. Items will be inserted into the row the order they are put into this method
      Parameters:
      items - The items that will appear in the row. Must be the same amount of items as columns
    • build

      public Table build()
      Builds the table from the TableDefinition and the rows added
      Returns:
      the table
    • clear

      public void clear()
      Deletes all rows from the TableBuilder.