tmap/smali_classes3/com/google/common/collect/RegularImmutableSet.smali
2022-06-10 21:38:30 +09:00

311 lines
6.9 KiB
Smali

.class final Lcom/google/common/collect/RegularImmutableSet;
.super Lcom/google/common/collect/ImmutableSet;
.source "RegularImmutableSet.java"
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
emulated = true
serializable = true
.end annotation
.annotation runtime Lcom/google/common/collect/ElementTypesAreNonnullByDefault;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/collect/ImmutableSet<",
"TE;>;"
}
.end annotation
# static fields
.field public static final EMPTY:Lcom/google/common/collect/RegularImmutableSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/RegularImmutableSet<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private static final EMPTY_ARRAY:[Ljava/lang/Object;
# instance fields
.field public final transient elements:[Ljava/lang/Object;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
.field private final transient hashCode:I
.field private final transient mask:I
.field private final transient size:I
.field public final transient table:[Ljava/lang/Object;
.annotation build Lcom/google/common/annotations/VisibleForTesting;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 7
const/4 v0, 0x0
new-array v4, v0, [Ljava/lang/Object;
.line 1
sput-object v4, Lcom/google/common/collect/RegularImmutableSet;->EMPTY_ARRAY:[Ljava/lang/Object;
.line 2
new-instance v0, Lcom/google/common/collect/RegularImmutableSet;
const/4 v3, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
move-object v1, v0
move-object v2, v4
invoke-direct/range {v1 .. v6}, Lcom/google/common/collect/RegularImmutableSet;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
sput-object v0, Lcom/google/common/collect/RegularImmutableSet;->EMPTY:Lcom/google/common/collect/RegularImmutableSet;
return-void
.end method
.method public constructor <init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/common/collect/ImmutableSet;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
.line 3
iput p2, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode:I
.line 4
iput-object p3, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
.line 5
iput p4, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
.line 6
iput p5, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
return-void
.end method
# virtual methods
.method public contains(Ljava/lang/Object;)Z
.locals 4
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
const/4 v1, 0x0
if-eqz p1, :cond_3
.line 2
array-length v2, v0
if-nez v2, :cond_0
goto :goto_1
.line 3
:cond_0
invoke-static {p1}, Lcom/google/common/collect/Hashing;->smearedHash(Ljava/lang/Object;)I
move-result v2
.line 4
:goto_0
iget v3, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
and-int/2addr v2, v3
.line 5
aget-object v3, v0, v2
if-nez v3, :cond_1
return v1
.line 6
:cond_1
invoke-virtual {v3, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_2
const/4 p1, 0x1
return p1
:cond_2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_3
:goto_1
return v1
.end method
.method public copyIntoArray([Ljava/lang/Object;I)I
.locals 3
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
iget v1, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
const/4 v2, 0x0
invoke-static {v0, v2, p1, p2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 2
iget p1, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
add-int/2addr p2, p1
return p2
.end method
.method public createAsList()Lcom/google/common/collect/ImmutableList;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/ImmutableList<",
"TE;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
iget v1, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
invoke-static {v0, v1}, Lcom/google/common/collect/ImmutableList;->asImmutableList([Ljava/lang/Object;I)Lcom/google/common/collect/ImmutableList;
move-result-object v0
return-object v0
.end method
.method public hashCode()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode:I
return v0
.end method
.method public internalArray()[Ljava/lang/Object;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
return-object v0
.end method
.method public internalArrayEnd()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
return v0
.end method
.method public internalArrayStart()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isHashCodeFast()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public isPartialView()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public iterator()Lcom/google/common/collect/UnmodifiableIterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/UnmodifiableIterator<",
"TE;>;"
}
.end annotation
.line 2
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->asList()Lcom/google/common/collect/ImmutableList;
move-result-object v0
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic iterator()Ljava/util/Iterator;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/common/collect/RegularImmutableSet;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
move-result-object v0
return-object v0
.end method
.method public size()I
.locals 1
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
return v0
.end method