apkfuckery/com.discord/smali_classes2/i0/s/a.smali

95 lines
2.2 KiB
Smali
Raw Normal View History

2020-07-22 00:04:40 +00:00
.class public final Li0/s/a;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
.source "SequencesJVM.kt"
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
# interfaces
.implements Lkotlin/sequences/Sequence;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/sequences/Sequence<",
"TT;>;"
}
.end annotation
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lkotlin/sequences/Sequence<",
"TT;>;>;"
}
.end annotation
.end field
2020-07-08 16:44:49 +00:00
# direct methods
2020-07-20 19:00:44 +00:00
.method public constructor <init>(Lkotlin/sequences/Sequence;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/sequences/Sequence<",
"+TT;>;)V"
}
.end annotation
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
invoke-direct {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
iput-object v0, p0, Li0/s/a;->a:Ljava/util/concurrent/atomic/AtomicReference;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
return-void
.end method
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
# virtual methods
.method public iterator()Ljava/util/Iterator;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
2020-07-08 16:44:49 +00:00
2020-07-22 00:04:40 +00:00
iget-object v0, p0, Li0/s/a;->a:Ljava/util/concurrent/atomic/AtomicReference;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
const/4 v1, 0x0
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-07-20 19:00:44 +00:00
check-cast v0, Lkotlin/sequences/Sequence;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
if-eqz v0, :cond_0
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
invoke-interface {v0}, Lkotlin/sequences/Sequence;->iterator()Ljava/util/Iterator;
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-07-20 19:00:44 +00:00
return-object v0
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
const-string v1, "This sequence can be consumed only once."
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-07-20 19:00:44 +00:00
throw v0
2020-07-08 16:44:49 +00:00
.end method