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
# static fields
.field 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
# instance fields
.field final transient elements:[Ljava/lang/Object;
.field private final transient hashCode:I
.field private final transient mask:I
.field private final transient size:I
.field final transient table:[Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.registers 7
.line 1
new-instance v6, Lcom/google/common/collect/RegularImmutableSet;
const/4 v0, 0x0
new-array v1, v0, [Ljava/lang/Object;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lcom/google/common/collect/RegularImmutableSet;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
sput-object v6, Lcom/google/common/collect/RegularImmutableSet;->EMPTY:Lcom/google/common/collect/RegularImmutableSet;
return-void
.end method
.method constructor <init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
.registers 6
.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-object p3, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
.line 4
iput p4, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
.line 5
iput p2, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode: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
.registers 6
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->table:[Ljava/lang/Object;
const/4 v1, 0x0
if-eqz p1, :cond_1f
if-nez v0, :cond_8
goto :goto_1f
.line 2
:cond_8
invoke-static {p1}, Lcom/google/common/collect/x;->a(Ljava/lang/Object;)I
move-result v2
.line 3
:goto_c
iget v3, p0, Lcom/google/common/collect/RegularImmutableSet;->mask:I
and-int/2addr v2, v3
.line 4
aget-object v3, v0, v2
if-nez v3, :cond_14
return v1
.line 5
:cond_14
invoke-virtual {v3, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_1c
const/4 p1, 0x1
return p1
:cond_1c
add-int/lit8 v2, v2, 0x1
goto :goto_c
:cond_1f
:goto_1f
return v1
.end method
.method copyIntoArray([Ljava/lang/Object;I)I
.registers 6
.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 createAsList()Lcom/google/common/collect/ImmutableList;
.registers 3
.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
.registers 2
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->hashCode:I
return v0
.end method
.method internalArray()[Ljava/lang/Object;
.registers 2
.line 1
iget-object v0, p0, Lcom/google/common/collect/RegularImmutableSet;->elements:[Ljava/lang/Object;
return-object v0
.end method
.method internalArrayEnd()I
.registers 2
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
return v0
.end method
.method internalArrayStart()I
.registers 2
const/4 v0, 0x0
return v0
.end method
.method isHashCodeFast()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method isPartialView()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public iterator()Lcom/google/common/collect/ia;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/ia<",
"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/ia;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic iterator()Ljava/util/Iterator;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/google/common/collect/RegularImmutableSet;->iterator()Lcom/google/common/collect/ia;
move-result-object v0
return-object v0
.end method
.method public size()I
.registers 2
.line 1
iget v0, p0, Lcom/google/common/collect/RegularImmutableSet;->size:I
return v0
.end method