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

34 591
19.4
Следующее
Популярные
55 дней – 11 4905:33
Graphics layers | Jetpack Compose Tips
Опубликовано 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
Свежие видео
5 дней – 2 2920:15
scheduler.yield API
7 дней – 511 2937:07
Next-gen 4K OLED is here.
9 дней – 5 264 32010:53
The Honey Scam: Explained
автотехномузыкадетское