Guava 25.1 已发布,更新如下:
Switched to the type annotation version of
@Nullablein the JRE/Java 8 flavor.base: AddedStrings.lenientFormat(), copied fromPreconditions.format().net: Added Token Binding HTTP headers toHttpHeaders.reflect: Added overrides for methods on JDK types returningAnnotatedTypein the JRE/Java 8 flavor.testing: Added support for type annotations inNullPointerTesterin the JRE/Java 8 flavor.util.concurrent: Added@DoNotCalltoFuturesmethods that do not accept anExecutorin preparation for removal.
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>25.1-jre</version> <!-- or, for Android: --> <version>25.1-android</version> </dependency>
Javadoc
JDiff
25.1-jre vs. 25.0-jre (shows a lot of junk, probably due to switch to
@Nullabletype annotations)
引用来自“yongk”的评论
jre与android的区别在哪里呢,api不一样?