EmptySubscription.smali
5.7 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
.class public final enum Lio/reactivex/internal/subscriptions/EmptySubscription;
.super Ljava/lang/Enum;
.source "EmptySubscription.java"
# interfaces
.implements Lio/reactivex/internal/fuseable/QueueSubscription;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lio/reactivex/internal/subscriptions/EmptySubscription;",
">;",
"Lio/reactivex/internal/fuseable/QueueSubscription<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lio/reactivex/internal/subscriptions/EmptySubscription;
.field public static final enum INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 26
new-instance v0, Lio/reactivex/internal/subscriptions/EmptySubscription;
const/4 v1, 0x0
const-string v2, "INSTANCE"
invoke-direct {v0, v2, v1}, Lio/reactivex/internal/subscriptions/EmptySubscription;-><init>(Ljava/lang/String;I)V
sput-object v0, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
const/4 v0, 0x1
.line 24
new-array v0, v0, [Lio/reactivex/internal/subscriptions/EmptySubscription;
sget-object v2, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
aput-object v2, v0, v1
sput-object v0, Lio/reactivex/internal/subscriptions/EmptySubscription;->$VALUES:[Lio/reactivex/internal/subscriptions/EmptySubscription;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 24
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static complete(Lorg/reactivestreams/Subscriber;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Subscriber<",
"*>;)V"
}
.end annotation
.line 67
sget-object v0, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
invoke-interface {p0, v0}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
.line 68
invoke-interface {p0}, Lorg/reactivestreams/Subscriber;->onComplete()V
return-void
.end method
.method public static error(Ljava/lang/Throwable;Lorg/reactivestreams/Subscriber;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Throwable;",
"Lorg/reactivestreams/Subscriber<",
"*>;)V"
}
.end annotation
.line 53
sget-object v0, Lio/reactivex/internal/subscriptions/EmptySubscription;->INSTANCE:Lio/reactivex/internal/subscriptions/EmptySubscription;
invoke-interface {p1, v0}, Lorg/reactivestreams/Subscriber;->onSubscribe(Lorg/reactivestreams/Subscription;)V
.line 54
invoke-interface {p1, p0}, Lorg/reactivestreams/Subscriber;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lio/reactivex/internal/subscriptions/EmptySubscription;
.locals 1
.line 24
const-class v0, Lio/reactivex/internal/subscriptions/EmptySubscription;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lio/reactivex/internal/subscriptions/EmptySubscription;
return-object p0
.end method
.method public static values()[Lio/reactivex/internal/subscriptions/EmptySubscription;
.locals 1
.line 24
sget-object v0, Lio/reactivex/internal/subscriptions/EmptySubscription;->$VALUES:[Lio/reactivex/internal/subscriptions/EmptySubscription;
invoke-virtual {v0}, [Lio/reactivex/internal/subscriptions/EmptySubscription;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/internal/subscriptions/EmptySubscription;
return-object v0
.end method
# virtual methods
.method public cancel()V
.locals 0
return-void
.end method
.method public clear()V
.locals 0
return-void
.end method
.method public isEmpty()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public offer(Ljava/lang/Object;)Z
.locals 1
.line 89
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Should not be called!"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public offer(Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 0
.line 93
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Should not be called!"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public poll()Ljava/lang/Object;
.locals 1
.annotation build Lio/reactivex/annotations/Nullable;
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public request(J)V
.locals 0
.line 30
invoke-static {p1, p2}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(J)Z
return-void
.end method
.method public requestFusion(I)I
.locals 0
and-int/lit8 p1, p1, 0x2
return p1
.end method
.method public toString()Ljava/lang/String;
.locals 1
const-string v0, "EmptySubscription"
return-object v0
.end method