- 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
}
推薦閱讀
- 社交網絡對齊
- Building E-commerce Sites with VirtueMart Cookbook
- Building Django 2.0 Web Applications
- 網絡故障現場處理實踐(第4版)
- JBoss EAP6 High Availability
- Yii Application Development Cookbook(Second Edition)
- Learning Swift(Second Edition)
- 計算機網絡技術及應用
- 人人都該都懂的互聯網思維
- Building RESTful Web Services with .NET Core
- 5G智慧交通
- 物聯網,So Easy!
- Python Web Scraping Cookbook
- 一本書讀懂移動物聯網
- 智慧的物聯網:感知中國和世界的技術