Java 8 Language Features on Android (Android Development Patterns S3 Ep 9)

34 590
19.4
Следующее
Популярные
129 дней – 5 5790:25
3 steps to go edge-to-edge safely
Опубликовано 18 августа 2016, 17:06
With Android Studio 3.0+ the default tool-chain includes support for many of these Java 8 language features and usage of the jack tool-chain is deprecated. Learn more here: youtu.be/LhaSi6_i2bo

----------------------------------------------------------------------

With the help of the Jack toolchain, you’ll be able to cut out boilerplate code with the help of some Java 8 language features. Lambda expressions provide a compact way to express functional interfaces (interfaces with a single method) and method references allow you to use existing methods as lambda expressions - both features available back to API 9 (Gingerbread) devices!

Newly added in API 24 is the Stream API, default method implementations and static methods for interfaces, and repeatable annotations - you’ll have to be on an API 24 devices to take advantage of those features!

Check out the documentation for all the details: goo.gl/h3KUPP


#BuildBetterApps #AndroidN #lambdas
автотехномузыкадетское