Guava包学习--Multiset

Multiset之前倒是没用过,后来看了下还挺有用,其实它就是支持重复元素的HashSet,相当于list+set的集合,综合了两种集合的优点。 它扩展了Collection: @GwtCompatible public interface Multiset<E> extends Collection<E> {} 先用一下看看: List<String> list = Lists.newArray
相关文章
相关标签/搜索