.class Lkotlin/collections/CollectionsKt__ReversedViewsKt; .super Lkotlin/collections/CollectionsKt__MutableCollectionsKt; .source "ReversedViews.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u0018\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010!\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0007\u001a\u001c\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\u001a#\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0003\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u0004\u001a\u001d\u0010\u0005\u001a\u00020\u0006*\u0006\u0012\u0002\u0008\u00030\u00012\u0006\u0010\u0007\u001a\u00020\u0006H\u0002\u00a2\u0006\u0002\u0008\u0008\u001a\u001d\u0010\t\u001a\u00020\u0006*\u0006\u0012\u0002\u0008\u00030\u00012\u0006\u0010\u0007\u001a\u00020\u0006H\u0002\u00a2\u0006\u0002\u0008\n\u001a\u001d\u0010\u000b\u001a\u00020\u0006*\u0006\u0012\u0002\u0008\u00030\u00012\u0006\u0010\u0007\u001a\u00020\u0006H\u0002\u00a2\u0006\u0002\u0008\u000c\u00a8\u0006\r" } d2 = { "asReversed", "", "T", "", "asReversedMutable", "reverseElementIndex", "", "index", "reverseElementIndex$CollectionsKt__ReversedViewsKt", "reverseIteratorIndex", "reverseIteratorIndex$CollectionsKt__ReversedViewsKt", "reversePositionIndex", "reversePositionIndex$CollectionsKt__ReversedViewsKt", "kotlin-stdlib" } k = 0x5 mv = { 0x1, 0x9, 0x0 } xi = 0x31 xs = "kotlin/collections/CollectionsKt" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Lkotlin/collections/CollectionsKt__MutableCollectionsKt;->()V return-void .end method .method public static final synthetic access$reverseElementIndex(Ljava/util/List;I)I .locals 0 .line 1 invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt__ReversedViewsKt;->reverseElementIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I move-result p0 return p0 .end method .method public static final synthetic access$reverseIteratorIndex(Ljava/util/List;I)I .locals 0 .line 1 invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt__ReversedViewsKt;->reverseIteratorIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I move-result p0 return p0 .end method .method public static final synthetic access$reversePositionIndex(Ljava/util/List;I)I .locals 0 .line 1 invoke-static {p0, p1}, Lkotlin/collections/CollectionsKt__ReversedViewsKt;->reversePositionIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I move-result p0 return p0 .end method .method public static final asReversed(Ljava/util/List;)Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "+TT;>;)", "Ljava/util/List<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 77 new-instance v0, Lkotlin/collections/ReversedListReadOnly; invoke-direct {v0, p0}, Lkotlin/collections/ReversedListReadOnly;->(Ljava/util/List;)V check-cast v0, Ljava/util/List; return-object v0 .end method .method public static final asReversedMutable(Ljava/util/List;)Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "TT;>;)", "Ljava/util/List<", "TT;>;" } .end annotation const-string v0, "" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 85 new-instance v0, Lkotlin/collections/ReversedList; invoke-direct {v0, p0}, Lkotlin/collections/ReversedList;->(Ljava/util/List;)V check-cast v0, Ljava/util/List; return-object v0 .end method .method private static final reverseElementIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "*>;I)I" } .end annotation .line 65 new-instance v0, Lkotlin/ranges/IntRange; invoke-static {p0}, Lkotlin/collections/CollectionsKt;->getLastIndex(Ljava/util/List;)I move-result v1 const/4 v2, 0x0 invoke-direct {v0, v2, v1}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {v0, p1}, Lkotlin/ranges/IntRange;->contains(I)Z move-result v0 if-eqz v0, :cond_0 invoke-static {p0}, Lkotlin/collections/CollectionsKt;->getLastIndex(Ljava/util/List;)I move-result p0 sub-int/2addr p0, p1 return p0 :cond_0 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; const-string v3, "Element index " invoke-direct {v1, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 const-string v1, " must be in range [" invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 new-instance v1, Lkotlin/ranges/IntRange; invoke-static {p0}, Lkotlin/collections/CollectionsKt;->getLastIndex(Ljava/util/List;)I move-result p0 invoke-direct {v1, v2, p0}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, "]." invoke-virtual {p0, p1}, 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 invoke-direct {v0, p0}, Ljava/lang/IndexOutOfBoundsException;->(Ljava/lang/String;)V throw v0 .end method .method private static final reverseIteratorIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "*>;I)I" } .end annotation .line 70 invoke-static {p0}, Lkotlin/collections/CollectionsKt;->getLastIndex(Ljava/util/List;)I move-result p0 sub-int/2addr p0, p1 return p0 .end method .method private static final reversePositionIndex$CollectionsKt__ReversedViewsKt(Ljava/util/List;I)I .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "*>;I)I" } .end annotation .line 68 new-instance v0, Lkotlin/ranges/IntRange; invoke-interface {p0}, Ljava/util/List;->size()I move-result v1 const/4 v2, 0x0 invoke-direct {v0, v2, v1}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {v0, p1}, Lkotlin/ranges/IntRange;->contains(I)Z move-result v0 if-eqz v0, :cond_0 invoke-interface {p0}, Ljava/util/List;->size()I move-result p0 sub-int/2addr p0, p1 return p0 :cond_0 new-instance v0, Ljava/lang/IndexOutOfBoundsException; new-instance v1, Ljava/lang/StringBuilder; const-string v3, "Position index " invoke-direct {v1, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 const-string v1, " must be in range [" invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 new-instance v1, Lkotlin/ranges/IntRange; invoke-interface {p0}, Ljava/util/List;->size()I move-result p0 invoke-direct {v1, v2, p0}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, "]." invoke-virtual {p0, p1}, 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 invoke-direct {v0, p0}, Ljava/lang/IndexOutOfBoundsException;->(Ljava/lang/String;)V throw v0 .end method