.class public Lkotlin/ranges/CharProgression; .super Ljava/lang/Object; .source "Progressions.kt" # interfaces .implements Ljava/lang/Iterable; .implements Lkotlin/jvm/internal/markers/KMappedMarker; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkotlin/ranges/CharProgression$Companion; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Ljava/lang/Iterable<", "Ljava/lang/Character;", ">;", "Lkotlin/jvm/internal/markers/KMappedMarker;" } .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u001c\n\u0002\u0010\u000c\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0008\u0016\u0018\u0000 \u00192\u0008\u0012\u0004\u0012\u00020\u00020\u0001:\u0001\u0019B\u001f\u0008\u0000\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007J\u0013\u0010\u000f\u001a\u00020\u00102\u0008\u0010\u0011\u001a\u0004\u0018\u00010\u0012H\u0096\u0002J\u0008\u0010\u0013\u001a\u00020\u0006H\u0016J\u0008\u0010\u0014\u001a\u00020\u0010H\u0016J\t\u0010\u0015\u001a\u00020\u0016H\u0096\u0002J\u0008\u0010\u0017\u001a\u00020\u0018H\u0016R\u0011\u0010\u0008\u001a\u00020\u0002\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\t\u0010\nR\u0011\u0010\u000b\u001a\u00020\u0002\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\nR\u0011\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\r\u0010\u000e\u00a8\u0006\u001a" } d2 = { "Lkotlin/ranges/CharProgression;", "", "", "start", "endInclusive", "step", "", "(CCI)V", "first", "getFirst", "()C", "last", "getLast", "getStep", "()I", "equals", "", "other", "", "hashCode", "isEmpty", "iterator", "Lkotlin/collections/CharIterator;", "toString", "", "Companion", "kotlin-stdlib" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # static fields .field public static final Companion:Lkotlin/ranges/CharProgression$Companion; # instance fields .field private final first:C .field private final last:C .field private final step:I # direct methods .method static constructor ()V .locals 2 new-instance v0, Lkotlin/ranges/CharProgression$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lkotlin/ranges/CharProgression$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lkotlin/ranges/CharProgression;->Companion:Lkotlin/ranges/CharProgression$Companion; return-void .end method .method public constructor (CCI)V .locals 1 .line 15 invoke-direct {p0}, Ljava/lang/Object;->()V if-eqz p3, :cond_1 const/high16 v0, -0x80000000 if-eq p3, v0, :cond_0 iput-char p1, p0, Lkotlin/ranges/CharProgression;->first:C .line 35 invoke-static {p1, p2, p3}, Lkotlin/internal/ProgressionUtilKt;->getProgressionLastElement(III)I move-result p1 int-to-char p1, p1 iput-char p1, p0, Lkotlin/ranges/CharProgression;->last:C iput p3, p0, Lkotlin/ranges/CharProgression;->step:I return-void .line 24 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Step must be greater than Int.MIN_VALUE to avoid overflow on negation." invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .line 23 :cond_1 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Step must be non-zero." invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 2 .line 53 instance-of v0, p1, Lkotlin/ranges/CharProgression; if-eqz v0, :cond_2 invoke-virtual {p0}, Lkotlin/ranges/CharProgression;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 move-object v0, p1 check-cast v0, Lkotlin/ranges/CharProgression; invoke-virtual {v0}, Lkotlin/ranges/CharProgression;->isEmpty()Z move-result v0 if-nez v0, :cond_1 :cond_0 iget-char v0, p0, Lkotlin/ranges/CharProgression;->first:C .line 54 check-cast p1, Lkotlin/ranges/CharProgression; iget-char v1, p1, Lkotlin/ranges/CharProgression;->first:C if-ne v0, v1, :cond_2 iget-char v0, p0, Lkotlin/ranges/CharProgression;->last:C iget-char v1, p1, Lkotlin/ranges/CharProgression;->last:C if-ne v0, v1, :cond_2 iget p0, p0, Lkotlin/ranges/CharProgression;->step:I iget p1, p1, Lkotlin/ranges/CharProgression;->step:I if-ne p0, p1, :cond_2 :cond_1 const/4 p0, 0x1 goto :goto_0 :cond_2 const/4 p0, 0x0 :goto_0 return p0 .end method .method public final getFirst()C .locals 0 iget-char p0, p0, Lkotlin/ranges/CharProgression;->first:C return p0 .end method .method public final getLast()C .locals 0 iget-char p0, p0, Lkotlin/ranges/CharProgression;->last:C return p0 .end method .method public final getStep()I .locals 0 iget p0, p0, Lkotlin/ranges/CharProgression;->step:I return p0 .end method .method public hashCode()I .locals 2 .line 57 invoke-virtual {p0}, Lkotlin/ranges/CharProgression;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 const/4 p0, -0x1 goto :goto_0 :cond_0 iget-char v0, p0, Lkotlin/ranges/CharProgression;->first:C mul-int/lit8 v0, v0, 0x1f iget-char v1, p0, Lkotlin/ranges/CharProgression;->last:C add-int/2addr v0, v1 mul-int/lit8 v0, v0, 0x1f iget p0, p0, Lkotlin/ranges/CharProgression;->step:I add-int/2addr p0, v0 :goto_0 return p0 .end method .method public isEmpty()Z .locals 3 iget v0, p0, Lkotlin/ranges/CharProgression;->step:I const/4 v1, 0x1 const/4 v2, 0x0 if-lez v0, :cond_0 iget-char v0, p0, Lkotlin/ranges/CharProgression;->first:C iget-char p0, p0, Lkotlin/ranges/CharProgression;->last:C .line 50 invoke-static {v0, p0}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I move-result p0 if-lez p0, :cond_1 goto :goto_0 :cond_0 iget-char v0, p0, Lkotlin/ranges/CharProgression;->first:C iget-char p0, p0, Lkotlin/ranges/CharProgression;->last:C invoke-static {v0, p0}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I move-result p0 if-gez p0, :cond_1 goto :goto_0 :cond_1 move v1, v2 :goto_0 return v1 .end method .method public bridge synthetic iterator()Ljava/util/Iterator; .locals 0 .line 15 invoke-virtual {p0}, Lkotlin/ranges/CharProgression;->iterator()Lkotlin/collections/CharIterator; move-result-object p0 check-cast p0, Ljava/util/Iterator; return-object p0 .end method .method public iterator()Lkotlin/collections/CharIterator; .locals 3 .line 42 new-instance v0, Lkotlin/ranges/CharProgressionIterator; iget-char v1, p0, Lkotlin/ranges/CharProgression;->first:C iget-char v2, p0, Lkotlin/ranges/CharProgression;->last:C iget p0, p0, Lkotlin/ranges/CharProgression;->step:I invoke-direct {v0, v1, v2, p0}, Lkotlin/ranges/CharProgressionIterator;->(CCI)V check-cast v0, Lkotlin/collections/CharIterator; return-object v0 .end method .method public toString()Ljava/lang/String; .locals 3 iget v0, p0, Lkotlin/ranges/CharProgression;->step:I const-string v1, " step " if-lez v0, :cond_0 .line 59 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-char v2, p0, Lkotlin/ranges/CharProgression;->first:C invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, ".." invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-char v2, p0, Lkotlin/ranges/CharProgression;->last:C invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget p0, p0, Lkotlin/ranges/CharProgression;->step:I goto :goto_0 :cond_0 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-char v2, p0, Lkotlin/ranges/CharProgression;->first:C invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, " downTo " invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-char v2, p0, Lkotlin/ranges/CharProgression;->last:C invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget p0, p0, Lkotlin/ranges/CharProgression;->step:I neg-int p0, p0 :goto_0 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)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