來自 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
</li>-
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.
</li> </ul> -
Converter.andThen(Converter)
</li> -
Enums - removed deprecated valueOfFunction` method.
</li> </ul>common.collect
-
FluentIterable.of(E[])
</li> -
FluentIterable.append(E...)
</li> -
FluentIterable.append(Iterable)
</li> -
FluentIterable.join(Joiner)
</li> </ul>common.hash
-
Hashing.crc32c()
</li> </ul>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)
</li> </ul>common.reflect
-
Parameter.getAnnotationsByType(Class)
</li> -
Parameter.getDeclaredAnnotation(Class)
-
Parameter.getDeclaredAnnotationsByType(Class)
</ul>
-
MoreExecutors.directExecutor() - lightweight, simple Executor that runs tasks on the thread that invokes execute.
</li> -
MoreExecutors.newDirectExecutorService() - heavier ListeningExecutorService implementation of the same thing; equivalent to sameThreadExecutor(), which has been deprecated.
</li> </ul>此版本現已提供下載:
Guava Guava (GWT) </tr>Maven Identifier com.google.guava:guava:18.0 com.google.guava:guava-gwt:18.0 </tr>Jar guava-18.0.jar guava-gwt-18.0.jar </tr>Javadoc guava-18.0-javadoc.jar guava-gwt-18.0-javadoc.jar </tr>Sources guava-18.0-sources.jar guava-gwt-18.0-sources.jar </tr> </tbody> </table> </a>來自:http://www.oschina.net/news/55071/guava-18本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!相關資訊
相關經驗
sesese色
common.util.concurrent
-
-
-
-
-