I have a collection of objects that are guaranteed to be distinct (in particular, indexed by a unique integer ID). I also know exactly how many of them there are (and the n
For Enterprise software Scalable, Maintainable and clean Code is lot better. So I go for HashSet.