You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1013 lines
22 KiB
1013 lines
22 KiB
2 years ago
|
.class public abstract Lcom/google/common/collect/ImmutableSet;
|
||
|
.super Lcom/google/common/collect/ImmutableCollection;
|
||
|
.source "ImmutableSet.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/util/Set;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
||
|
emulated = true
|
||
|
serializable = true
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lcom/google/common/collect/ImmutableSet$Builder;,
|
||
|
Lcom/google/common/collect/ImmutableSet$SerializedForm;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Lcom/google/common/collect/ImmutableCollection",
|
||
|
"<TE;>;",
|
||
|
"Ljava/util/Set",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final CUTOFF:I = 0x2ccccccc
|
||
|
|
||
|
.field private static final DESIRED_LOAD_FACTOR:D = 0.7
|
||
|
|
||
|
.field static final MAX_TABLE_SIZE:I = 0x40000000
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 383
|
||
|
invoke-direct {p0}, Lcom/google/common/collect/ImmutableCollection;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$000(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 74
|
||
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static builder()Lcom/google/common/collect/ImmutableSet$Builder;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">()",
|
||
|
"Lcom/google/common/collect/ImmutableSet$Builder",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 437
|
||
|
new-instance v0, Lcom/google/common/collect/ImmutableSet$Builder;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/google/common/collect/ImmutableSet$Builder;-><init>()V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method static chooseTableSize(I)I
|
||
|
.locals 6
|
||
|
.annotation build Lcom/google/common/annotations/VisibleForTesting;
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/high16 v1, 0x40000000 # 2.0f
|
||
|
|
||
|
.line 249
|
||
|
const v0, 0x2ccccccc
|
||
|
|
||
|
if-ge p0, v0, :cond_0
|
||
|
|
||
|
.line 251
|
||
|
add-int/lit8 v0, p0, -0x1
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
shl-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
.line 252
|
||
|
:goto_0
|
||
|
int-to-double v2, v0
|
||
|
|
||
|
const-wide v4, 0x3fe6666666666666L # 0.7
|
||
|
|
||
|
mul-double/2addr v2, v4
|
||
|
|
||
|
int-to-double v4, p0
|
||
|
|
||
|
cmpg-double v1, v2, v4
|
||
|
|
||
|
if-gez v1, :cond_1
|
||
|
|
||
|
.line 253
|
||
|
shl-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 259
|
||
|
:cond_0
|
||
|
if-ge p0, v1, :cond_2
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
const-string v2, "collection too large"
|
||
|
|
||
|
invoke-static {v0, v2}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
.line 260
|
||
|
:cond_1
|
||
|
return v0
|
||
|
|
||
|
.line 259
|
||
|
:cond_2
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method private static varargs construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 12
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(I[",
|
||
|
"Ljava/lang/Object;",
|
||
|
")",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
.line 179
|
||
|
packed-switch p0, :pswitch_data_0
|
||
|
|
||
|
.line 189
|
||
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->chooseTableSize(I)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
.line 190
|
||
|
new-array v6, v5, [Ljava/lang/Object;
|
||
|
|
||
|
.line 191
|
||
|
add-int/lit8 v7, v5, -0x1
|
||
|
|
||
|
move v3, v4
|
||
|
|
||
|
move v1, v4
|
||
|
|
||
|
move v2, v4
|
||
|
|
||
|
.line 194
|
||
|
:goto_0
|
||
|
if-ge v3, p0, :cond_2
|
||
|
|
||
|
.line 195
|
||
|
aget-object v0, p1, v3
|
||
|
|
||
|
invoke-static {v0, v3}, Lcom/google/common/collect/ObjectArrays;->checkElementNotNull(Ljava/lang/Object;I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
.line 196
|
||
|
invoke-virtual {v8}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
.line 197
|
||
|
invoke-static {v9}, Lcom/google/common/collect/Hashing;->smear(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 198
|
||
|
:goto_1
|
||
|
and-int v10, v0, v7
|
||
|
|
||
|
.line 199
|
||
|
aget-object v11, v6, v10
|
||
|
|
||
|
.line 200
|
||
|
if-nez v11, :cond_0
|
||
|
|
||
|
.line 202
|
||
|
add-int/lit8 v0, v1, 0x1
|
||
|
|
||
|
aput-object v8, p1, v1
|
||
|
|
||
|
.line 203
|
||
|
aput-object v8, v6, v10
|
||
|
|
||
|
.line 204
|
||
|
add-int v1, v2, v9
|
||
|
|
||
|
.line 194
|
||
|
:goto_2
|
||
|
add-int/lit8 v2, v3, 0x1
|
||
|
|
||
|
move v3, v2
|
||
|
|
||
|
move v2, v1
|
||
|
|
||
|
move v1, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 181
|
||
|
:pswitch_0
|
||
|
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 225
|
||
|
:goto_3
|
||
|
return-object v0
|
||
|
|
||
|
.line 184
|
||
|
:pswitch_1
|
||
|
aget-object v0, p1, v4
|
||
|
|
||
|
.line 185
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 206
|
||
|
:cond_0
|
||
|
invoke-virtual {v11, v8}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
if-eqz v10, :cond_1
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
move v1, v2
|
||
|
|
||
|
.line 207
|
||
|
goto :goto_2
|
||
|
|
||
|
.line 197
|
||
|
:cond_1
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 211
|
||
|
:cond_2
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-static {p1, v1, p0, v0}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V
|
||
|
|
||
|
.line 212
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
if-ne v1, v0, :cond_3
|
||
|
|
||
|
.line 215
|
||
|
aget-object v1, p1, v4
|
||
|
|
||
|
.line 216
|
||
|
new-instance v0, Lcom/google/common/collect/SingletonImmutableSet;
|
||
|
|
||
|
invoke-direct {v0, v1, v2}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;I)V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 217
|
||
|
:cond_3
|
||
|
invoke-static {v1}, Lcom/google/common/collect/ImmutableSet;->chooseTableSize(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eq v5, v0, :cond_4
|
||
|
|
||
|
.line 220
|
||
|
invoke-static {v1, p1}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 222
|
||
|
:cond_4
|
||
|
array-length v0, p1
|
||
|
|
||
|
if-ge v1, v0, :cond_5
|
||
|
|
||
|
invoke-static {p1, v1}, Lcom/google/common/collect/ObjectArrays;->arraysCopyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
.line 225
|
||
|
:cond_5
|
||
|
new-instance v0, Lcom/google/common/collect/RegularImmutableSet;
|
||
|
|
||
|
invoke-direct {v0, p1, v2, v6, v7}, Lcom/google/common/collect/RegularImmutableSet;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;I)V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 179
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_0
|
||
|
:pswitch_1
|
||
|
.end packed-switch
|
||
|
.end method
|
||
|
|
||
|
.method public static copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/lang/Iterable",
|
||
|
"<+TE;>;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 300
|
||
|
instance-of v0, p0, Ljava/util/Collection;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-static {p0}, Lcom/google/common/collect/Collections2;->cast(Ljava/lang/Iterable;)Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->copyOf(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/util/Collection",
|
||
|
"<+TE;>;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 364
|
||
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableSortedSet;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
.line 367
|
||
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
.line 368
|
||
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->isPartialView()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
.line 375
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
.line 371
|
||
|
:cond_0
|
||
|
instance-of v0, p0, Ljava/util/EnumSet;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 372
|
||
|
check-cast p0, Ljava/util/EnumSet;
|
||
|
|
||
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->copyOfEnumSet(Ljava/util/EnumSet;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 374
|
||
|
:cond_1
|
||
|
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 375
|
||
|
array-length v1, v0
|
||
|
|
||
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static copyOf(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/util/Iterator",
|
||
|
"<+TE;>;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 314
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
.line 315
|
||
|
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 321
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
.line 317
|
||
|
:cond_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 318
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
.line 319
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 321
|
||
|
:cond_1
|
||
|
new-instance v1, Lcom/google/common/collect/ImmutableSet$Builder;
|
||
|
|
||
|
invoke-direct {v1}, Lcom/google/common/collect/ImmutableSet$Builder;-><init>()V
|
||
|
|
||
|
invoke-virtual {v1, v0}, Lcom/google/common/collect/ImmutableSet$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet$Builder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lcom/google/common/collect/ImmutableSet$Builder;->addAll(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableSet$Builder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet$Builder;->build()Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">([TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 272
|
||
|
array-length v0, p0
|
||
|
|
||
|
packed-switch v0, :pswitch_data_0
|
||
|
|
||
|
.line 278
|
||
|
array-length v1, p0
|
||
|
|
||
|
invoke-virtual {p0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, [Ljava/lang/Object;
|
||
|
|
||
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
.line 274
|
||
|
:pswitch_0
|
||
|
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 276
|
||
|
:pswitch_1
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
aget-object v0, p0, v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 272
|
||
|
nop
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x0
|
||
|
:pswitch_0
|
||
|
:pswitch_1
|
||
|
.end packed-switch
|
||
|
.end method
|
||
|
|
||
|
.method private static copyOfEnumSet(Ljava/util/EnumSet;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Enum",
|
||
|
"<TE;>;>(",
|
||
|
"Ljava/util/EnumSet",
|
||
|
"<TE;>;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 380
|
||
|
invoke-static {p0}, Ljava/util/EnumSet;->copyOf(Ljava/util/EnumSet;)Ljava/util/EnumSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableEnumSet;->asImmutable(Ljava/util/EnumSet;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of()Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">()",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 84
|
||
|
sget-object v0, Lcom/google/common/collect/EmptyImmutableSet;->INSTANCE:Lcom/google/common/collect/EmptyImmutableSet;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.line 94
|
||
|
new-instance v0, Lcom/google/common/collect/SingletonImmutableSet;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v2, 0x2
|
||
|
|
||
|
.line 105
|
||
|
new-array v0, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
aput-object p0, v0, v1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
aput-object p1, v0, v1
|
||
|
|
||
|
invoke-static {v2, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;TE;TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v2, 0x3
|
||
|
|
||
|
.line 116
|
||
|
new-array v0, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
aput-object p0, v0, v1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
aput-object p1, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
aput-object p2, v0, v1
|
||
|
|
||
|
invoke-static {v2, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;TE;TE;TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v2, 0x4
|
||
|
|
||
|
.line 127
|
||
|
new-array v0, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
aput-object p0, v0, v1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
aput-object p1, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
aput-object p2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
aput-object p3, v0, v1
|
||
|
|
||
|
invoke-static {v2, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;TE;TE;TE;TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v2, 0x5
|
||
|
|
||
|
.line 138
|
||
|
new-array v0, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
aput-object p0, v0, v1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
aput-object p1, v0, v1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
aput-object p2, v0, v1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
aput-object p3, v0, v1
|
||
|
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
aput-object p4, v0, v1
|
||
|
|
||
|
invoke-static {v2, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static varargs of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(TE;TE;TE;TE;TE;TE;[TE;)",
|
||
|
"Lcom/google/common/collect/ImmutableSet",
|
||
|
"<TE;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
.line 151
|
||
|
.line 152
|
||
|
array-length v0, p6
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x6
|
||
|
|
||
|
new-array v0, v0, [Ljava/lang/Object;
|
||
|
|
||
|
.line 153
|
||
|
aput-object p0, v0, v3
|
||
|
|
||
|
.line 154
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
aput-object p1, v0, v1
|
||
|
|
||
|
.line 155
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
aput-object p2, v0, v1
|
||
|
|
||
|
.line 156
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
aput-object p3, v0, v1
|
||
|
|
||
|
.line 157
|
||
|
const/4 v1, 0x4
|
||
|
|
||
|
aput-object p4, v0, v1
|
||
|
|
||
|
.line 158
|
||
|
const/4 v1, 0x5
|
||
|
|
||
|
aput-object p5, v0, v1
|
||
|
|
||
|
.line 159
|
||
|
const/4 v1, 0x6
|
||
|
|
||
|
array-length v2, p6
|
||
|
|
||
|
invoke-static {p6, v3, v0, v1, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||
|
|
||
|
.line 160
|
||
|
array-length v1, v0
|
||
|
|
||
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 2
|
||
|
.param p1 # Ljava/lang/Object;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 391
|
||
|
if-ne p1, p0, :cond_0
|
||
|
|
||
|
.line 392
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 399
|
||
|
:goto_0
|
||
|
return v0
|
||
|
|
||
|
.line 393
|
||
|
:cond_0
|
||
|
instance-of v0, p1, Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->isHashCodeFast()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->isHashCodeFast()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eq v0, v1, :cond_1
|
||
|
|
||
|
.line 397
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 399
|
||
|
:cond_1
|
||
|
invoke-static {p0, p1}, Lcom/google/common/collect/Sets;->equalsImpl(Ljava/util/Set;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 403
|
||
|
invoke-static {p0}, Lcom/google/common/collect/Sets;->hashCodeImpl(Ljava/util/Set;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method isHashCodeFast()Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 387
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return v0
|
||
|
.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 1
|
||
|
|
||
|
.prologue
|
||
|
.line 72
|
||
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method writeReplace()Ljava/lang/Object;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 429
|
||
|
new-instance v0, Lcom/google/common/collect/ImmutableSet$SerializedForm;
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->toArray()[Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableSet$SerializedForm;-><init>([Ljava/lang/Object;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|