Notification.smali
8.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
.class public final Lio/reactivex/Notification;
.super Ljava/lang/Object;
.source "Notification.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
.field static final COMPLETE:Lio/reactivex/Notification;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/Notification<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# instance fields
.field final value:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.locals 2
.line 160
new-instance v0, Lio/reactivex/Notification;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lio/reactivex/Notification;-><init>(Ljava/lang/Object;)V
sput-object v0, Lio/reactivex/Notification;->COMPLETE:Lio/reactivex/Notification;
return-void
.end method
.method private constructor <init>(Ljava/lang/Object;)V
.locals 0
.line 30
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 31
iput-object p1, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
return-void
.end method
.method public static createOnComplete()Lio/reactivex/Notification;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/Notification<",
"TT;>;"
}
.end annotation
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.line 156
sget-object v0, Lio/reactivex/Notification;->COMPLETE:Lio/reactivex/Notification;
return-object v0
.end method
.method public static createOnError(Ljava/lang/Throwable;)Lio/reactivex/Notification;
.locals 1
.param p0 # Ljava/lang/Throwable;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Throwable;",
")",
"Lio/reactivex/Notification<",
"TT;>;"
}
.end annotation
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
const-string v0, "error is null"
.line 143
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 144
new-instance v0, Lio/reactivex/Notification;
invoke-static {p0}, Lio/reactivex/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p0
invoke-direct {v0, p0}, Lio/reactivex/Notification;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public static createOnNext(Ljava/lang/Object;)Lio/reactivex/Notification;
.locals 1
.param p0 # Ljava/lang/Object;
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Lio/reactivex/Notification<",
"TT;>;"
}
.end annotation
.annotation build Lio/reactivex/annotations/NonNull;
.end annotation
const-string v0, "value is null"
.line 130
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 131
new-instance v0, Lio/reactivex/Notification;
invoke-direct {v0, p0}, Lio/reactivex/Notification;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
.line 96
instance-of v0, p1, Lio/reactivex/Notification;
if-eqz v0, :cond_0
.line 97
check-cast p1, Lio/reactivex/Notification;
.line 98
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
iget-object p1, p1, Lio/reactivex/Notification;->value:Ljava/lang/Object;
invoke-static {v0, p1}, Lio/reactivex/internal/functions/ObjectHelper;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public getError()Ljava/lang/Throwable;
.locals 2
.annotation build Lio/reactivex/annotations/Nullable;
.end annotation
.line 87
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
.line 88
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 89
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v0
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public getValue()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/annotations/Nullable;
.end annotation
.line 72
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
.line 73
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
.line 74
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public hashCode()I
.locals 1
.line 105
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
.line 106
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isOnComplete()Z
.locals 1
.line 39
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isOnError()Z
.locals 1
.line 49
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public isOnNext()Z
.locals 1
.line 59
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
.line 60
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.line 111
iget-object v0, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
if-nez v0, :cond_0
const-string v0, "OnCompleteNotification"
return-object v0
.line 115
:cond_0
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
const-string v2, "]"
if-eqz v1, :cond_1
.line 116
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "OnErrorNotification["
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.line 118
:cond_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "OnNextNotification["
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lio/reactivex/Notification;->value:Ljava/lang/Object;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method