Guava记录 - Collections(二) - 新集合类型

2019-10-17  本文已影响0人  一点温柔

一、简介

guava对新集合类型的说明为:

Guava introduces a number of new collection types that are not in the JDK, but that we have found to be broadly useful. These are all designed to coexist happily with the JDK collections framework, without shoehorning things into the JDK collection abstractions.
As a general rule, the Guava collection implementations follow JDK interface contracts very precisely.

大致意思是Guava引入了一些新的集合类型,它们不在JDK中,但是发现它们非常有用。且它们都被设计为与JDK集合框架和谐共存,而不是将一些东西硬塞进JDK集合抽象中。

一般来说,Guava实现非常精确地遵循JDK接口契约。

二、新集合类型

1、Multiset

详细使用链接: https://www.jianshu.com/p/ca3886ffa4ae

2、SortedMultiset
3、Multimap

详细使用链接: https://www.jianshu.com/p/f04e396124ca

4、BiMap

详细使用链接:https://www.jianshu.com/p/4a2d5a7f2782

5、Table

详细使用链接:https://www.jianshu.com/p/dde0a8e9195c

6、ClassToInstanceMap

详细使用链接:https://www.jianshu.com/p/ca30246a5d41

7、RangeSet

详细使用链接: https://www.jianshu.com/p/c5a940056cdb

8、RangeMap

详细使用链接: https://www.jianshu.com/p/8d1ff29bbfe7

......未完待续

上一篇下一篇

猜你喜欢

热点阅读