来自 Google 的 Java 类库,Guava 18 正式版发布
Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, 等等. 这些高质量的 API 可以使你的JAVa代码更加优雅,更加简洁。
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)
-
Enums - removed deprecated valueOfFunction` method.
</ul> -
FluentIterable.of(E[])
-
FluentIterable.append(E...)
-
FluentIterable.append(Iterable)
-
FluentIterable.join(Joiner)
-
Hashing.crc32c()
-
InetAddresses.decrement(InetAddress)
-
Parameter.getAnnotationsByType(Class)
-
Parameter.getDeclaredAnnotation(Class)
-
Parameter.getDeclaredAnnotationsByType(Class)
-
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.
common.collect
common.hash
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
common.reflect
common.util.concurrent
此版本现已提供下载: