Since Android N, some of the Java 8 language features are finally supported thanks to the new Jack & Jill compiler toolchain. This however comes with several limitations like for example an inability to use the new compiler along with the data binding support library or limited annotations support. But that doesn’t mean that you should give up on advanced language features of Java 8 at all. In this post, I’ll introduce you to a way how to enable Java 8 features in Android by using four libraries back-porting Java 8 functionality to lower Java versions.
stream
Stream API in Java 8
Continuing the series of Java 8 language features tutorial, after introducing lambda expressions in one of the previous posts, let me present the new Stream API in Java 8 in this post.