mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
407 lines
9.4 KiB
Smali
407 lines
9.4 KiB
Smali
.class public abstract Lcom/google/common/collect/ImmutableCollection;
|
|
.super Ljava/util/AbstractCollection;
|
|
.source "ImmutableCollection.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/collect/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
.annotation runtime Lcom/google/errorprone/annotations/DoNotMock;
|
|
value = "Use ImmutableList.of or another implementation"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/ImmutableCollection$ArrayBasedBuilder;,
|
|
Lcom/google/common/collect/ImmutableCollection$Builder;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/AbstractCollection<",
|
|
"TE;>;",
|
|
"Ljava/io/Serializable;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final EMPTY_ARRAY:[Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
sput-object v0, Lcom/google/common/collect/ImmutableCollection;->EMPTY_ARRAY:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 171
|
|
invoke-direct {p0}, Ljava/util/AbstractCollection;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final add(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TE;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 253
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final addAll(Ljava/util/Collection;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"+TE;>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 281
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public asList()Lcom/google/common/collect/ImmutableList;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/collect/ImmutableList<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 336
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Lcom/google/common/collect/ImmutableList;->of()Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->asImmutableList([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final clear()V
|
|
.locals 0
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 322
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public abstract contains(Ljava/lang/Object;)Z
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end param
|
|
.end method
|
|
|
|
.method copyIntoArray([Ljava/lang/Object;I)I
|
|
.locals 2
|
|
|
|
.line 353
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
add-int/lit8 v1, p2, 0x1
|
|
|
|
.line 354
|
|
aput-object v0, p1, p2
|
|
|
|
move p2, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return p2
|
|
.end method
|
|
|
|
.method internalArray()[Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method internalArrayEnd()I
|
|
.locals 0
|
|
|
|
.line 236
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method internalArrayStart()I
|
|
.locals 0
|
|
|
|
.line 228
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method abstract isPartialView()Z
|
|
.end method
|
|
|
|
.method public abstract iterator()Lcom/google/common/collect/UnmodifiableIterator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/collect/UnmodifiableIterator<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public bridge synthetic iterator()Ljava/util/Iterator;
|
|
.locals 0
|
|
|
|
.line 163
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final remove(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 267
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final removeAll(Ljava/util/Collection;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 295
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final retainAll(Ljava/util/Collection;)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 309
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final toArray()[Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/google/common/collect/ImmutableCollection;->EMPTY_ARRAY:[Ljava/lang/Object;
|
|
|
|
.line 181
|
|
invoke-virtual {p0, v0}, Lcom/google/common/collect/ImmutableCollection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">([TT;)[TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 200
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 201
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->size()I
|
|
|
|
move-result v0
|
|
|
|
.line 203
|
|
array-length v1, p1
|
|
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 204
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->internalArray()[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 206
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->internalArrayStart()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->internalArrayEnd()I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {v1, v0, p0, p1}, Lcom/google/common/collect/Platform;->copy([Ljava/lang/Object;II[Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 208
|
|
:cond_0
|
|
invoke-static {p1, v0}, Lcom/google/common/collect/ObjectArrays;->newArray([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
.line 209
|
|
:cond_1
|
|
array-length v1, p1
|
|
|
|
if-le v1, v0, :cond_2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 210
|
|
aput-object v1, p1, v0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 212
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/common/collect/ImmutableCollection;->copyIntoArray([Ljava/lang/Object;I)I
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method writeReplace()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 361
|
|
new-instance v0, Lcom/google/common/collect/ImmutableList$SerializedForm;
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableList$SerializedForm;-><init>([Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|