apkfuckery/com.discord/smali_classes2/j0/i/d.smali

346 lines
7.3 KiB
Smali
Raw Normal View History

2020-07-25 00:57:58 +00:00
.class public final Lj0/i/d;
.super Ljava/lang/Object;
.source "Collections.kt"
# interfaces
.implements Ljava/util/Collection;
.implements Lj0/n/c/v/a;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/util/Collection<",
"TT;>;",
"Lj0/n/c/v/a;"
}
.end annotation
# instance fields
.field public final d:[Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"[TT;"
}
.end annotation
.end field
.field public final e:Z
# direct methods
.method public constructor <init>([Ljava/lang/Object;Z)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"([TT;Z)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lj0/i/d;->d:[Ljava/lang/Object;
iput-boolean p2, p0, Lj0/i/d;->e:Z
return-void
.end method
# virtual methods
.method public add(Ljava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public addAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+TT;>;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public clear()V
.locals 2
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Operation is not supported for read-only collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public contains(Ljava/lang/Object;)Z
.locals 1
iget-object v0, p0, Lj0/i/d;->d:[Ljava/lang/Object;
2020-07-25 02:57:47 +00:00
invoke-static {v0, p1}, Lf/n/a/k/a;->contains([Ljava/lang/Object;Ljava/lang/Object;)Z
2020-07-25 00:57:58 +00:00
move-result p1
return p1
.end method
.method public containsAll(Ljava/util/Collection;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+",
"Ljava/lang/Object;",
">;)Z"
}
.end annotation
if-eqz p1, :cond_3
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
goto :goto_0
:cond_0
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lj0/i/d;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const/4 v1, 0x0
:cond_2
:goto_0
return v1
:cond_3
const-string p1, "elements"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public isEmpty()Z
.locals 1
iget-object v0, p0, Lj0/i/d;->d:[Ljava/lang/Object;
array-length v0, 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 iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Lj0/i/d;->d:[Ljava/lang/Object;
2020-07-25 02:57:47 +00:00
invoke-static {v0}, Lf/n/a/k/a;->iterator([Ljava/lang/Object;)Ljava/util/Iterator;
2020-07-25 00:57:58 +00:00
move-result-object v0
return-object v0
.end method
.method public remove(Ljava/lang/Object;)Z
.locals 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public removeAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+",
"Ljava/lang/Object;",
">;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public retainAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+",
"Ljava/lang/Object;",
">;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final size()I
.locals 1
iget-object v0, p0, Lj0/i/d;->d:[Ljava/lang/Object;
array-length v0, v0
return v0
.end method
.method public final toArray()[Ljava/lang/Object;
.locals 3
iget-object v0, p0, Lj0/i/d;->d:[Ljava/lang/Object;
iget-boolean v1, p0, Lj0/i/d;->e:Z
const-class v2, [Ljava/lang/Object;
if-eqz v0, :cond_1
if-eqz v1, :cond_0
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-static {v1, v2}, Lj0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
:cond_0
array-length v1, v0
invoke-static {v0, v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
move-result-object v0
const-string v1, "java.util.Arrays.copyOf(\u2026 Array<Any?>::class.java)"
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
return-object v0
:cond_1
const-string v0, "$this$copyToArrayOfAny"
invoke-static {v0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
const/4 v0, 0x0
throw v0
.end method
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)[TT;"
}
.end annotation
invoke-static {p0, p1}, Lj0/n/c/e;->toArray(Ljava/util/Collection;[Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
return-object p1
.end method