手机版
你好,游客 登录 注册
背景:
阅读新闻

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

[日期:2014-09-08] 来源:oschina.net  作者:Linux [字体:大 中 小]

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

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

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/106314.htm

linux
相关资讯       Guava下载 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款