Guava 26.0 已发布,更新如下:
base
: Removed deprecated public static
fields from CharMatcher
. Use the equivalent public static
methods instead. (f1249c4)
base
: Fixed the ServiceConfigurationError
that some users encountered when using Guava as a JPMS module. (8287cdf)
cache
: Fixed a bug where Cache.asMap.compute*
methods could cause nonsensical weights to be stored, breaking cache eviction. (15764d7)
concurrent
: Removed deprecated Futures
methods that implicitly use directExecutor()
. (87d87f5)
concurrent
: Added ExecutionSequencer
, a new utility to run a series of asynchronous operations serially. (8d1fbc9)
concurrent
: Removed special-casing UndeclaredThrowableException
in Futures.transform()
. (9466b62)
net
: Changed HostAndPort.equals()
and hashCode()
to stop depending on whether brackets were included. Now they depend only on host and port. (34c1616)
net
: Added HttpHeaders
constant for Sec-Metadata header. (986a3a3)
net
: Added MediaType
for "application/hal+json". (fea88fe)
Guava
是 Google 的一个开源项目,包含许多 Google 核心的 Java 常用库,如:集合 [collections] 、缓存
[caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries]
、通用注解 [common annotations] 、字符串处理 [string processing] 、I/O 等等。
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>26.0-jre</version>
<!-- or, for Android: -->
<version>26.0-android</version>
</dependency>
Javadoc
JDiff
下载地址: