RegularImmutableSet.smali
.class final Lcom/google/common/collect/RegularImmutableSet;
.super Lcom/google/common/collect/ImmutableSet;
.source "RegularImmutableSet.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Lcom/google/common/collect/ImmutableSet",
"<TE;>;"
}
.end annotation
# instance fields
.field private final elements:[Ljava/lang/Object;
.field private final transient hashCode:I
.field private final transient mask:I
.field final transient table:[Ljava/lang/Object;
# direct methods
.method constructor <init>([Ljava/lang/Object;I[Ljava/lang/Object;I)V
.registers 5
.prologue
.line 38
invoke-direct {p0}, Lcom/google/common/collect/ImmutableSet;-><init>()V
.line 39
iput-object p1, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
.line 40
iput-object p3, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
.line 41
iput p4, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
.line 42
iput p2, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode:I
.line 43
return-void
.end method
# virtual methods
.method public final contains(Ljava/lang/Object;)Z
.registers 6
.prologue
const/4 v1, 0x0
.line 46
if-nez p1, :cond_5
move v0, v1
.line 55
:goto_4
return v0
.line 49
:cond_5
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
move-result v0
invoke-static {v0}, Lcom/google/common/collect/aj;->cV(I)I
move-result v0
.line 50
:goto_d
iget-object v2, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
iget v3, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
and-int/2addr v3, v0
aget-object v2, v2, v3
.line 51
if-nez v2, :cond_18
move v0, v1
.line 52
goto :goto_4
.line 54
:cond_18
invoke-virtual {v2, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_20
.line 55
const/4 v0, 0x1
goto :goto_4
.line 49
:cond_20
add-int/lit8 v0, v0, 0x1
goto :goto_d
.end method
.method final copyIntoArray([Ljava/lang/Object;I)I
.registers 6
.prologue
.line 73
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
array-length v2, v2
invoke-static {v0, v1, p1, p2, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 74
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
array-length v0, v0
add-int/2addr v0, p2
return v0
.end method
.method final createAsList()Lcom/google/common/collect/ImmutableList;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/ImmutableList",
"<TE;>;"
}
.end annotation
.prologue
.line 79
new-instance v0, Lcom/google/common/collect/RegularImmutableAsList;
iget-object v1, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
invoke-direct {v0, p0, v1}, Lcom/google/common/collect/RegularImmutableAsList;-><init>(Lcom/google/common/collect/ImmutableCollection;[Ljava/lang/Object;)V
return-object v0
.end method
.method public final hashCode()I
.registers 2
.prologue
.line 88
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode:I
return v0
.end method
.method final isHashCodeFast()Z
.registers 2
.prologue
.line 92
const/4 v0, 0x1
return v0
.end method
.method final isPartialView()Z
.registers 2
.prologue
.line 84
const/4 v0, 0x0
return v0
.end method
.method public final iterator()Lcom/google/common/collect/dd;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/dd",
"<TE;>;"
}
.end annotation
.prologue
.line 68
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
invoke-static {v0}, Lcom/google/common/collect/az;->f([Ljava/lang/Object;)Lcom/google/common/collect/dd;
move-result-object v0
return-object v0
.end method
.method public final bridge synthetic iterator()Ljava/util/Iterator;
.registers 2
.prologue
.line 27
invoke-virtual {p0}, Lcom/google/common/collect/RegularImmutableSet;->iterator()Lcom/google/common/collect/dd;
move-result-object v0
return-object v0
.end method
.method public final size()I
.registers 2
.prologue
.line 62
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
array-length v0, v0
return v0
.end method