.class public final Landroidx/room/util/TableInfo$Index; .super Ljava/lang/Object; .source "TableInfo.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/room/util/TableInfo; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Index" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/room/util/TableInfo$Index$Companion; } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nTableInfo.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TableInfo.kt\nandroidx/room/util/TableInfo$Index\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,650:1\n1#2:651\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\u0008\u0006\n\u0002\u0010\u0008\n\u0002\u0008\u0003\u0008\u0007\u0018\u0000 \u00102\u00020\u0001:\u0001\u0010B%\u0008\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0007\u00a2\u0006\u0002\u0010\u0008B1\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0007\u0012\u000c\u0010\t\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u0007\u00a2\u0006\u0002\u0010\nJ\u0013\u0010\u000b\u001a\u00020\u00052\u0008\u0010\u000c\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\u0008\u0010\r\u001a\u00020\u000eH\u0016J\u0008\u0010\u000f\u001a\u00020\u0003H\u0016R\u0016\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u00078\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0018\u0010\t\u001a\u0008\u0012\u0004\u0012\u00020\u00030\u00078\u0006@\u0006X\u0087\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0004\u001a\u00020\u00058\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0011" } d2 = { "Landroidx/room/util/TableInfo$Index;", "", "name", "", "unique", "", "columns", "", "(Ljava/lang/String;ZLjava/util/List;)V", "orders", "(Ljava/lang/String;ZLjava/util/List;Ljava/util/List;)V", "equals", "other", "hashCode", "", "toString", "Companion", "room-runtime_release" } k = 0x1 mv = { 0x1, 0x7, 0x1 } xi = 0x30 .end annotation # static fields .field public static final Companion:Landroidx/room/util/TableInfo$Index$Companion; .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 orders:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .end field .field public final unique:Z # direct methods .method static constructor ()V .locals 2 new-instance v0, Landroidx/room/util/TableInfo$Index$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Landroidx/room/util/TableInfo$Index$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Landroidx/room/util/TableInfo$Index;->Companion:Landroidx/room/util/TableInfo$Index$Companion; return-void .end method .method public constructor (Ljava/lang/String;ZLjava/util/List;)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Z", "Ljava/util/List<", "Ljava/lang/String;", ">;)V" } .end annotation .annotation runtime Lkotlin/Deprecated; message = "Use {@link #Index(String, boolean, List, List)}" .end annotation const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "columns" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 430 invoke-interface {p3}, Ljava/util/List;->size()I move-result v0 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1, v0}, Ljava/util/ArrayList;->(I)V const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_0 sget-object v3, Landroidx/room/Index$Order;->ASC:Landroidx/room/Index$Order; invoke-virtual {v3}, Landroidx/room/Index$Order;->name()Ljava/lang/String; move-result-object v3 invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 check-cast v1, Ljava/util/List; .line 426 invoke-direct {p0, p1, p2, p3, v1}, Landroidx/room/util/TableInfo$Index;->(Ljava/lang/String;ZLjava/util/List;Ljava/util/List;)V return-void .end method .method public constructor (Ljava/lang/String;ZLjava/util/List;Ljava/util/List;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Z", "Ljava/util/List<", "Ljava/lang/String;", ">;", "Ljava/util/List<", "Ljava/lang/String;", ">;)V" } .end annotation const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "columns" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "orders" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 403 invoke-direct {p0}, Ljava/lang/Object;->()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; iput-object p4, p0, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; .line 415 check-cast p4, Ljava/util/Collection; invoke-interface {p4}, Ljava/util/Collection;->isEmpty()Z move-result p1 if-eqz p1, :cond_1 .line 416 invoke-interface {p3}, Ljava/util/List;->size()I move-result p1 new-instance p2, Ljava/util/ArrayList; invoke-direct {p2, p1}, Ljava/util/ArrayList;->(I)V const/4 p3, 0x0 :goto_0 if-ge p3, p1, :cond_0 sget-object p4, Landroidx/room/Index$Order;->ASC:Landroidx/room/Index$Order; invoke-virtual {p4}, Landroidx/room/Index$Order;->name()Ljava/lang/String; move-result-object p4 invoke-virtual {p2, p4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z add-int/lit8 p3, p3, 0x1 goto :goto_0 :cond_0 move-object p4, p2 check-cast p4, Ljava/util/List; .line 415 :cond_1 check-cast p4, Ljava/util/List; iput-object p4, p0, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 5 if-ne p0, p1, :cond_0 const/4 p0, 0x1 return p0 .line 435 :cond_0 instance-of v0, p1, Landroidx/room/util/TableInfo$Index; const/4 v1, 0x0 if-nez v0, :cond_1 return v1 :cond_1 iget-boolean v0, p0, Landroidx/room/util/TableInfo$Index;->unique:Z .line 436 check-cast p1, Landroidx/room/util/TableInfo$Index; iget-boolean v2, p1, Landroidx/room/util/TableInfo$Index;->unique:Z if-eq v0, v2, :cond_2 return v1 :cond_2 iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List; .line 439 iget-object v2, p1, Landroidx/room/util/TableInfo$Index;->columns:Ljava/util/List; invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_3 return v1 :cond_3 iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; .line 442 iget-object v2, p1, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_4 return v1 :cond_4 iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; const-string v2, "index_" const/4 v3, 0x2 const/4 v4, 0x0 .line 445 invoke-static {v0, v2, v1, v3, v4}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v0 if-eqz v0, :cond_5 .line 446 iget-object p0, p1, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; invoke-static {p0, v2, v1, v3, v4}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result p0 goto :goto_0 :cond_5 iget-object p0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; .line 448 iget-object p1, p1, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p0 :goto_0 return p0 .end method .method public hashCode()I .locals 5 iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; const/4 v1, 0x2 const/4 v2, 0x0 const-string v3, "index_" const/4 v4, 0x0 .line 453 invoke-static {v0, v3, v4, v1, v2}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 const v0, -0x46960e33 goto :goto_0 :cond_0 iget-object v0, p0, Landroidx/room/util/TableInfo$Index;->name:Ljava/lang/String; .line 456 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; .line 459 invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I move-result v1 add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget-object p0, p0, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; .line 460 invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I move-result p0 add-int/2addr v0, p0 return v0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 465 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Index{name=\'" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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; move-result-object v0 const-string v1, "\', unique=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-boolean v1, p0, Landroidx/room/util/TableInfo$Index;->unique:Z invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", columns=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 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; move-result-object v0 const-string v1, ", orders=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object p0, p0, Landroidx/room/util/TableInfo$Index;->orders:Ljava/util/List; invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 const-string v0, "\'}" invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method