Skip to content

Commit 1191414

Browse files
Description for operators
1 parent c22c1d7 commit 1191414

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

app/src/main/java/com/rxjava2/android/samples/ui/networking/NetworkingActivity.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ protected void onCreate(Bundle savedInstanceState) {
4040
setContentView(R.layout.activity_networking);
4141
}
4242

43-
/************************************
44-
* map operator start
45-
************************************/
46-
43+
/**
44+
* Map Operator Example
45+
*/
4746
public void map(View view) {
4847
Rx2AndroidNetworking.get("https://fierce-cove-29863.herokuapp.com/getAnUser/{userId}")
4948
.addPathParameter("userId", "1")
@@ -84,13 +83,13 @@ public void onComplete() {
8483
}
8584

8685

87-
/************************************
88-
* zip operator start
89-
*********************************/
86+
/**
87+
* zip Operator Example
88+
*/
9089

91-
/*
92-
* This observable return the list of User who loves cricket
93-
*/
90+
/**
91+
* This observable return the list of User who loves cricket
92+
*/
9493
private Observable<List<User>> getCricketFansObservable() {
9594
return Rx2AndroidNetworking.get("https://fierce-cove-29863.herokuapp.com/getAllCricketFans")
9695
.build()
@@ -168,9 +167,10 @@ public void zip(View view) {
168167
findUsersWhoLovesBoth();
169168
}
170169

171-
/************************************
172-
* flatMap and filter operator start
173-
************************************/
170+
171+
/**
172+
* flatMap and filter Operators Example
173+
*/
174174

175175
private Observable<List<User>> getAllMyFriendsObservable() {
176176
return Rx2AndroidNetworking.get("https://fierce-cove-29863.herokuapp.com/getAllFriends/{userId}")
@@ -220,9 +220,10 @@ public void onComplete() {
220220
});
221221
}
222222

223-
/************************************
224-
* take operator start
225-
************************************/
223+
224+
/**
225+
* take Operator Example
226+
*/
226227

227228
public void take(View view) {
228229
getUserListObservable()
@@ -260,10 +261,9 @@ public void onComplete() {
260261
}
261262

262263

263-
/************************************
264-
* flatMap operator start
265-
************************************/
266-
264+
/**
265+
* flatMap Operator Example
266+
*/
267267

268268
public void flatMap(View view) {
269269
getUserListObservable()
@@ -308,9 +308,9 @@ public void onComplete() {
308308
});
309309
}
310310

311-
/************************************
312-
* flatMapWithZip operator start
313-
************************************/
311+
/**
312+
* flatMapWithZip Operator Example
313+
*/
314314

315315
private Observable<List<User>> getUserListObservable() {
316316
return Rx2AndroidNetworking.get("https://fierce-cove-29863.herokuapp.com/getAllUsers/{pageNumber}")

0 commit comments

Comments
 (0)