Java HashSet vs Array Performance

后端 未结 5 1006
情书的邮戳
情书的邮戳 2020-12-30 07:50

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

5条回答
  •  心在旅途
    2020-12-30 08:39

    For Enterprise software Scalable, Maintainable and clean Code is lot better. So I go for HashSet.

提交回复
热议问题