What is the difference between the sum of Apache Commons and Guava MultiSet?

It seems that these two are exactly the same, do any confirm?

+4
source share
1 answer

First of all, this: Multiset exactly matches the Collection contract and usually works better with other JDK collection utilities. In addition, Multiset supports generics, supports the entrySet () method and the setCount method, none of which are offered by Bag.

They serve the same purpose as you can clearly say, but I would like to think that Multiset wins in most cases.

+16
source

Source: https://habr.com/ru/post/1391046/


All Articles