Java 8 and Guava

401 views
Skip to first unread message

Louis Wasserman

unread,
Nov 4, 2016, 3:16:54 PM11/4/16
to guava-...@googlegroups.com, guava-a...@googlegroups.com

Hello Guava users,


Here's an earlier thread where we announced that Guava 21 will require Java 8.

https://groups.google.com/d/msg/guava-discuss/ZRmDJnAq9T0/-HExv44eCAAJ


We’ve now flipped most of Google to use Java 8, and have just started mirroring out Guava 21 snapshots that include the Java 8 related changes we’ve made internally.  This includes improvements to make Guava’s collections perform well with streams, new Java 8 related APIs to make it easier to use Guava with Java 8, and even some entirely new APIs to manipulate Streams.


Some of these features include:

  • Collectors for immutable collections

  • Conversions between Guava and JDK Optionals, in case you can't migrate your entire codebase at once

  • Utilities like Streams.zip() and findLast()

  • Handy Collectors like MoreCollectors.onlyElement() analogous to Iterables.getOnlyElement()

  • Efficient Stream implementations for the Guava collection types


We are still filling out some of these features, but we think you’ll be happy with what we’ve added already.


You can start seeing these changes in Guava at HEAD today (Javadoc, API diffs), and we plan to release Guava 21 soon. Beginning with Guava 22, we will also start releasing a backport supporting use cases such as Android.


Happy Java 8ing,

The Guava Team


Reply all
Reply to author
Forward
0 new messages