d0.smali
.class public final Lt3/d0;
.super Ljava/lang/Object;
.source "Sets.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lt3/d0$a;
}
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public static a(Ljava/util/Set;)I
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"*>;)I"
}
.end annotation
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
const/4 v0, 0x0
const/4 v1, 0x0
:goto_6
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1e
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_17
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
goto :goto_18
:cond_17
const/4 v2, 0x0
:goto_18
add-int/2addr v1, v2
xor-int/lit8 v1, v1, -0x1
xor-int/lit8 v1, v1, -0x1
goto :goto_6
:cond_1e
return v1
.end method
.method public static a()Ljava/util/HashSet;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">()",
"Ljava/util/HashSet<",
"TE;>;"
}
.end annotation
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
return-object v0
.end method
.method public static a(I)Ljava/util/HashSet;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(I)",
"Ljava/util/HashSet<",
"TE;>;"
}
.end annotation
new-instance v0, Ljava/util/HashSet;
invoke-static {p0}, Lcom/google/common/collect/Maps;->a(I)I
move-result p0
invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(I)V
return-object v0
.end method
.method public static a(Ljava/util/Set;Ljava/lang/Object;)Z
.registers 6
.param p0 # Ljava/util/Set;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"*>;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
const/4 v0, 0x1
if-ne p0, p1, :cond_4
return v0
:cond_4
instance-of v1, p1, Ljava/util/Set;
const/4 v2, 0x0
if-eqz v1, :cond_1e
check-cast p1, Ljava/util/Set;
:try_start_b
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v1
invoke-interface {p1}, Ljava/util/Set;->size()I
move-result v3
if-ne v1, v3, :cond_1c
invoke-interface {p0, p1}, Ljava/util/Set;->containsAll(Ljava/util/Collection;)Z
move-result p0
:try_end_19
.catch Ljava/lang/NullPointerException; {:try_start_b .. :try_end_19} :catch_1e
.catch Ljava/lang/ClassCastException; {:try_start_b .. :try_end_19} :catch_1e
if-eqz p0, :cond_1c
goto :goto_1d
:cond_1c
const/4 v0, 0x0
:goto_1d
return v0
:catch_1e
:cond_1e
return v2
.end method
.method public static a(Ljava/util/Set;Ljava/util/Collection;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"*>;",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
invoke-static {p1}, Lr3/j;->a(Ljava/lang/Object;)Ljava/lang/Object;
instance-of v0, p1, Lt3/u;
if-eqz v0, :cond_d
check-cast p1, Lt3/u;
invoke-interface {p1}, Lt3/u;->b()Ljava/util/Set;
move-result-object p1
:cond_d
instance-of v0, p1, Ljava/util/Set;
if-eqz v0, :cond_24
invoke-interface {p1}, Ljava/util/Collection;->size()I
move-result v0
invoke-interface {p0}, Ljava/util/Set;->size()I
move-result v1
if-le v0, v1, :cond_24
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
invoke-static {p0, p1}, Lt3/p;->a(Ljava/util/Iterator;Ljava/util/Collection;)Z
move-result p0
return p0
:cond_24
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
invoke-static {p0, p1}, Lt3/d0;->a(Ljava/util/Set;Ljava/util/Iterator;)Z
move-result p0
return p0
.end method
.method public static a(Ljava/util/Set;Ljava/util/Iterator;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"*>;",
"Ljava/util/Iterator<",
"*>;)Z"
}
.end annotation
const/4 v0, 0x0
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_11
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
invoke-interface {p0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
move-result v1
or-int/2addr v0, v1
goto :goto_1
:cond_11
return v0
.end method