This is a Java related question. If I create a new HashMap and a new List, and then place the List inside the Hashmap with some arbitrary key and then later call List.clear() will it affect what I've placed inside the hashmap? The deeper question here being: When I add something to a hashmap, is a new object copied and placed or is a reference to the original object placed?
Thanks, Diego M