Guava 18 正式版发布下载,来自 Google 的 Java 类库

linux新闻评论3.2K views阅读模式

Guava 18 正式版发布,此版本解决了 16 个 isuues,同时还有很多 API 改进:

Guava 18 正式版发布下载,来自 Google 的 Java 类库

common.base

  • MoreObjects

    • Methods in Objects which do not have equivalents in Java.util.Objects have been moved to MoreObjects to allow importing of both classes. Those methods have been deprecated in our Objects class. Methods which do have equivalents in java.util.Objects will remain (undeprecated) in our Objects class as long as Guava continues to support JDK 6.

  • Converter.andThen(Converter<B, C>)

  • Enums - removed deprecated valueOfFunction` method.

common.collect

  • FluentIterable.of(E[])

  • FluentIterable.append(E...)

  • FluentIterable.append(Iterable<? extends E>)

  • FluentIterable.join(Joiner)

common.hash

  • Hashing.crc32c()

BloomFilter no longer recognizes the system property com.google.common.hash.BloomFilter.useMitz32 (see Release 17 - A note on BloomFilter for more information).

common.io

Methods which took an InputSupplier or OutputSupplier parameter or which returned an InputSupplier or OutputSupplier (all of which were deprecated in Guava 15.0) have been removed. Additionally, ByteSource, ByteSink, CharSource and CharSink no longer implement InputSupplier or OutputSupplier.

The InputSupplier and OutputSupplier interfaces, which no longer have any usages in Guava, will be deleted in December 2015.

common.net

  • InetAddresses.decrement(InetAddress)

common.reflect

  • Parameter.getAnnotationsByType(Class<A>)

  • Parameter.getDeclaredAnnotation(Class<A>)

  • Parameter.getDeclaredAnnotationsByType(Class<A>)

common.util.concurrent

  • MoreExecutors.directExecutor() - lightweight, simple Executor that runs tasks on the thread that invokes execute.

  • MoreExecutors.newDirectExecutorService() - heavier ListeningExecutorService implementation of the same thing; equivalent to sameThreadExecutor(), which has been deprecated.

  Guava Guava (GWT)
Maven Identifier com.google.guava:guava:18.0 com.google.guava:guava-gwt:18.0
Jar guava-18.0.jar guava-gwt-18.0.jar
Javadoc guava-18.0-javadoc.jar guava-gwt-18.0-javadoc.jar
Sources guava-18.0-sources.jar guava-gwt-18.0-sources.jar

企鹅博客
  • 本文由 发表于 2019年9月3日 11:48:24
  • 转载请务必保留本文链接:https://www.qieseo.com/287144.html

发表评论