Class ListTable

    • Constructor Detail

      • ListTable

        public ListTable​(String id,
                         String description,
                         Collection<Column<?>> columns)
        Constructor.
        Parameters:
        id - String; id
        description - String; description
        columns - Collection<Column<?>>; columns
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns whether the table is empty.
        Specified by:
        isEmpty in class Table
        Returns:
        whether the table is empty
      • addRow

        public void addRow​(Map<Column<?>,​Object> data)
        Adds a row to the table.
        Parameters:
        data - Map<String, Object>; data with values given per column
        Throws:
        IllegalArgumentException - when the size or data types in the data map do not comply to the columns
      • addRowByColumnIds

        public void addRowByColumnIds​(Map<String,​Object> data)
        Adds a row to the table.
        Parameters:
        data - Map<String, Object>; data with values given per column id
        Throws:
        IllegalArgumentException - when the size or data types in the data map do not comply to the columns
      • addRow

        public void addRow​(Object[] data)
        Adds a row to the table. The order in which the elements in the array are offered should be the same as the order of the columns.
        Parameters:
        data - Object[]; row data
        Throws:
        IllegalArgumentException - when the size, order or data types in the Object[] do not comply to the columns