Kotlin for Android Developers
tải về
1.04 Mb.
Chế độ xem pdf
trang
6/79
Chuyển đổi dữ liệu
01.11.2023
Kích
1.04 Mb.
#55505
1
2
3
4
5
6
7
8
9
...
79
kotlin-for-android-developers-Ve2A1vRFHnmqGFAn
Điều hướng trang này:
21 Creating the business logic to data access
23 Creating a Detail Activity
24 Interfaces and Delegation
25 Generics
20 Null safety in Kotlin
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
89
20.1 How Null types work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
20.2 Nullity and Java libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
21 Creating the business logic to data access
. . . . . . . . . . . . . . . . . . . . . . . . . .
93
22. Flow control and ranges
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
98
22.1 If Expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
22.2 When expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
22.3 For loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
22.4 While and do/while loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
22.5 Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
23 Creating a Detail Activity
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
103
23.1 Preparing the request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
23.2 Providing a new activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
23.3 Start an activity: reified functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
24 Interfaces and Delegation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
112
24.1 Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
24.2 Delegation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
24.3 Implementing an example in our App . . . . . . . . . . . . . . . . . . . . . . . . . . 114
25 Generics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
120
25.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
25.2 Variance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
25.3 Generics examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
CONTENTS
tải về
1.04 Mb.
Chia sẻ với bạn bè của bạn:
1
2
3
4
5
6
7
8
9
...
79
Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý
Quê hương
BÁO CÁO
Tài liệu