- Hands-On Reactive Programming in Spring 5
- Oleh Dokuka Igor Lozynskyi
- 77字
- 2021-07-23 16:36:23
Rebuilding our application with RxJava
To get a feel for RxJava, let's rewrite the previously written temperature sensing application with RxJava. To use the library in the application, let's add the following dependency to the build.gradle file:
compile('io.reactivex:rxjava:1.3.8')
Here, we are using the same value class to represent the current temperature, as shown in the following code:
final class Temperature {
private final double value;
// constructor & getter
}
推薦閱讀
- 物聯(lián)網(wǎng)與北斗應(yīng)用
- 連接未來(lái):從古登堡到谷歌的網(wǎng)絡(luò)革命
- 工業(yè)控制網(wǎng)絡(luò)安全技術(shù)與實(shí)踐
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- 網(wǎng)絡(luò)的琴弦:玩轉(zhuǎn)IP看監(jiān)控
- Socket.IO Real-time Web Application Development
- Practical Web Design
- Metasploit Penetration Testing Cookbook
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- 6G:面向2030年的移動(dòng)通信
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- 工業(yè)互聯(lián)網(wǎng)創(chuàng)新實(shí)踐
- 數(shù)據(jù)血緣分析原理與實(shí)踐
- 物聯(lián)網(wǎng)的機(jī)遇與利用
- Python Web Scraping Cookbook