apkfuckery/com.discord/smali_classes2/rx/subjects/a$b.smali
2019-11-20 23:09:14 +01:00

158 lines
3.6 KiB
Smali

.class final Lrx/subjects/a$b;
.super Ljava/util/concurrent/atomic/AtomicInteger;
.source "ReplaySubject.java"
# interfaces
.implements Lrx/Producer;
.implements Lrx/Subscription;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/subjects/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicInteger;",
"Lrx/Producer;",
"Lrx/Subscription;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x4579a11aac8dacd7L
# instance fields
.field final actual:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
.field index:I
.field node:Ljava/lang/Object;
.field final requested:Ljava/util/concurrent/atomic/AtomicLong;
.field final state:Lrx/subjects/a$c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/a$c<",
"TT;>;"
}
.end annotation
.end field
.field tailIndex:I
# direct methods
.method public constructor <init>(Lrx/Subscriber;Lrx/subjects/a$c;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;",
"Lrx/subjects/a$c<",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
iput-object p1, p0, Lrx/subjects/a$b;->actual:Lrx/Subscriber;
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
iput-object p1, p0, Lrx/subjects/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
iput-object p2, p0, Lrx/subjects/a$b;->state:Lrx/subjects/a$c;
return-void
.end method
# virtual methods
.method public final isUnsubscribed()Z
.locals 1
iget-object v0, p0, Lrx/subjects/a$b;->actual:Lrx/Subscriber;
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
move-result v0
return v0
.end method
.method public final request(J)V
.locals 3
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_0
iget-object v0, p0, Lrx/subjects/a$b;->requested:Ljava/util/concurrent/atomic/AtomicLong;
invoke-static {v0, p1, p2}, Lrx/internal/a/a;->a(Ljava/util/concurrent/atomic/AtomicLong;J)J
iget-object p1, p0, Lrx/subjects/a$b;->state:Lrx/subjects/a$c;
iget-object p1, p1, Lrx/subjects/a$c;->buffer:Lrx/subjects/a$a;
invoke-interface {p1, p0}, Lrx/subjects/a$a;->a(Lrx/subjects/a$b;)V
return-void
:cond_0
if-ltz v2, :cond_1
return-void
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p1
const-string p2, "n >= required but it was "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final unsubscribe()V
.locals 1
iget-object v0, p0, Lrx/subjects/a$b;->state:Lrx/subjects/a$c;
invoke-virtual {v0, p0}, Lrx/subjects/a$c;->b(Lrx/subjects/a$b;)V
return-void
.end method