apkfuckery/com.discord/smali/androidx/room/util/TableInfo$Index.smali
2019-12-06 04:29:40 +01:00

241 lines
5.7 KiB
Smali

.class public Landroidx/room/util/TableInfo$Index;
.super Ljava/lang/Object;
.source "TableInfo.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/room/util/TableInfo;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Index"
.end annotation
# static fields
.field public static final DEFAULT_PREFIX:Ljava/lang/String; = "index_"
# instance fields
.field public final columns:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final name:Ljava/lang/String;
.field public final unique:Z
# direct methods
.method public constructor <init>(Ljava/lang/String;ZLjava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Z",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
iput-boolean p2, p0, Landroidx/room/util/TableInfo$Index;->unique:Z
iput-object p3, p0, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 v0, 0x0
if-eqz p1, :cond_5
const-class v1, Landroidx/room/util/TableInfo$Index;
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
if-eq v1, v2, :cond_1
goto :goto_0
:cond_1
check-cast p1, Landroidx/room/util/TableInfo$Index;
iget-boolean v1, p0, Landroidx/room/util/TableInfo$Index;->unique:Z
iget-boolean v2, p1, Landroidx/room/util/TableInfo$Index;->unique:Z
if-eq v1, v2, :cond_2
return v0
:cond_2
iget-object v1, p0, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List;
iget-object v2, p1, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List;
invoke-interface {v1, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_3
return v0
:cond_3
iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
const-string v1, "index_"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_4
iget-object p1, p1, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
invoke-virtual {p1, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result p1
return p1
:cond_4
iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
iget-object p1, p1, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_5
:goto_0
return v0
.end method
.method public hashCode()I
.locals 2
iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
const-string v1, "index_"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {v1}, Ljava/lang/String;->hashCode()I
move-result v0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v0
:goto_0
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Landroidx/room/util/TableInfo$Index;->unique:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "Index{name=\'"
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x27
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string v1, ", unique="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Landroidx/room/util/TableInfo$Index;->unique:Z
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v1, ", columns="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method