Google Guava

Google Collections Library是由Google基於Java5.0 Collections Framework開發的一套新的Java集合框架。新添加的主要類型包括:

BiMap:一個能夠保證Value不重複的Map,由於Value是不重複的,所以該Map支持把Value當成Key,Key當成Value使用。
Multiset:一個可以包含重複值如List,但又有獨立次序如Set的Collection。通常用於描繪柱狀圖。 
Multimap: 類似於Map,但又能夠包含重複的key。其下還有SetMultimap和ListMultimap這兩種擴展子類提供了一些更特殊的屬性和方法。除了 上述介紹的這幾種之外,Google Collections Library還實現了其它一二十種Collection。



Google Guava 被廣泛用於 Google 內部 Java 專案, 目的在提供經常且有效率的共通用性工具類為主.
Packages
com.google.common.annotationsCommon annotation types.
com.google.common.baseBasic utility libraries and interfaces.
com.google.common.base.internal 
com.google.common.collectThis package contains generic collection interfaces and implementations, and other utilities for working with collections.
com.google.common.ioThis package contains utility methods and classes for working with Java I/O, for example input streams, output streams, readers, writers, and files.
com.google.common.netThis package contains utility methods and classes for working with net addresses (numeric IP and domain names).
com.google.common.primitivesStatic utilities for working with the eight primitive types and void.
com.google.common.util.concurrentConcurrency utilities.



References




Comments