发布于 2017-11-09 23:54:11 | 166 次阅读 | 评论: 0 | 来源: 网友投递
Guava Java类库
Google Guava Collections 是一个对 Java Collections Framework 增强和扩展的一个开源项目。由于它高质量 API 的实现和对 JDK5 特性的充分利用,使得其在 Java 社区受到很高评价。笔者主要介绍它的基本用法和功能特性。
Guava 23.4 已发布,Guava 是 Google 的一个开源项目,包含许多 Google 核心的 Java 常用库,如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 、I/O 等等。
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.4-jre</version> <!-- or, for Android: --> <version>23.4-android</version> </dependency>
更新日志:
net
: Added Referrer-Policy
to HttpHeaders
, along with possible values for that header in ReferrerPolicyValues
. (19b4d97)
util.concurrent
: Adjusted the interruption behavior of MoreExecutors.sequentialExecutor()
to run tasks without a Thread
interrupt marked (previously, interrupts leaked between tasks). If the Thread
was interrupted when the Executor
received it or during execution of its tasks, the thread will be re-interrupted before being yielded. Expanded the documentation of MoreExecutors.sequentialExecutor()
to cover interruption and rejected execution behavior in detail. (40564c7)
下载地址: