Why does method Table.getColumns() return List of columns, but not Set. Why is the order important?
Why does method Table.getColumns() return List of columns, but not Set. Why is the order important?
Looking thru the source code, I don’t see any specific requirement for a list vs collection vs set. In most cases, the table.getColumns() is used in a for-each statement as the Iterable object in order to build lists of column names and ColumnConfig objects. I do see some cases where the list is iterated across to find a specific column, so in those cases, a Set might be better.
Hope this helps!