apkfuckery/com.discord/smali/rx/internal/operators/OperatorBufferWithSize$BufferExact.smali
2019-02-04 21:05:16 +01:00

193 lines
5.9 KiB
Smali

.class final Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
.super Lrx/Subscriber;
.source "OperatorBufferWithSize.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/OperatorBufferWithSize;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "BufferExact"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber",
"<TT;>;"
}
.end annotation
# instance fields
.field final actual:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber",
"<-",
"Ljava/util/List",
"<TT;>;>;"
}
.end annotation
.end field
.field buffer:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<TT;>;"
}
.end annotation
.end field
.field final count:I
# direct methods
.method public constructor <init>(Lrx/Subscriber;I)V
.locals 2
.param p2, "count" # I
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber",
"<-",
"Ljava/util/List",
"<TT;>;>;I)V"
}
.end annotation
.prologue
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact<TT;>;"
.local p1, "actual":Lrx/Subscriber;, "Lrx/Subscriber<-Ljava/util/List<TT;>;>;"
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
iput-object p1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->actual:Lrx/Subscriber;
iput p2, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->count:I
const-wide/16 v0, 0x0
invoke-virtual {p0, v0, v1}, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->request(J)V
return-void
.end method
.method static synthetic access$000(Lrx/internal/operators/OperatorBufferWithSize$BufferExact;J)V
.locals 1
.param p0, "x0" # Lrx/internal/operators/OperatorBufferWithSize$BufferExact;
.param p1, "x1" # J
.prologue
invoke-virtual {p0, p1, p2}, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->request(J)V
return-void
.end method
# virtual methods
.method createProducer()Lrx/Producer;
.locals 1
.prologue
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact<TT;>;"
new-instance v0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;
invoke-direct {v0, p0}, Lrx/internal/operators/OperatorBufferWithSize$BufferExact$1;-><init>(Lrx/internal/operators/OperatorBufferWithSize$BufferExact;)V
return-object v0
.end method
.method public onCompleted()V
.locals 2
.prologue
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact<TT;>;"
iget-object v0, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->buffer:Ljava/util/List;
.local v0, "b":Ljava/util/List;, "Ljava/util/List<TT;>;"
if-eqz v0, :cond_0
iget-object v1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->actual:Lrx/Subscriber;
invoke-virtual {v1, v0}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
:cond_0
iget-object v1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->actual:Lrx/Subscriber;
invoke-virtual {v1}, Lrx/Subscriber;->onCompleted()V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.param p1, "e" # Ljava/lang/Throwable;
.prologue
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact<TT;>;"
const/4 v0, 0x0
iput-object v0, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->buffer:Ljava/util/List;
iget-object v0, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->actual:Lrx/Subscriber;
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.prologue
.local p0, "this":Lrx/internal/operators/OperatorBufferWithSize$BufferExact;, "Lrx/internal/operators/OperatorBufferWithSize$BufferExact<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-object v0, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->buffer:Ljava/util/List;
.local v0, "b":Ljava/util/List;, "Ljava/util/List<TT;>;"
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
.end local v0 # "b":Ljava/util/List;, "Ljava/util/List<TT;>;"
iget v1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->count:I
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
.restart local v0 # "b":Ljava/util/List;, "Ljava/util/List<TT;>;"
iput-object v0, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->buffer:Ljava/util/List;
:cond_0
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
iget v2, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->count:I
if-ne v1, v2, :cond_1
const/4 v1, 0x0
iput-object v1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->buffer:Ljava/util/List;
iget-object v1, p0, Lrx/internal/operators/OperatorBufferWithSize$BufferExact;->actual:Lrx/Subscriber;
invoke-virtual {v1, v0}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
:cond_1
return-void
.end method