I have objects representing columns in a table that I want to declare as final. Some of these columns represent primary keys in my table, and for those columns I want to add them to an array list that gets passed into a function.
How can I declare a mutable list (one that I can add primary key columns to) that contains immutable objects (the column objects themselves)?
ArrayList<final Column>