347 lines
7.1 KiB
Smali
347 lines
7.1 KiB
Smali
.class public Lkotlin/ranges/IntProgression;
|
|
.super Ljava/lang/Object;
|
|
.source "Progressions.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Iterable;
|
|
.implements Lkotlin/jvm/internal/a/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lkotlin/ranges/IntProgression$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Iterable<",
|
|
"Ljava/lang/Integer;",
|
|
">;",
|
|
"Lkotlin/jvm/internal/a/a;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final bdn:Lkotlin/ranges/IntProgression$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final bdk:I
|
|
|
|
.field public final bdl:I
|
|
|
|
.field public final bdm:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lkotlin/ranges/IntProgression$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/ranges/IntProgression$a;-><init>(B)V
|
|
|
|
sput-object v0, Lkotlin/ranges/IntProgression;->bdn:Lkotlin/ranges/IntProgression$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(III)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
if-eq p3, v0, :cond_4
|
|
|
|
iput p1, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
if-lez p3, :cond_1
|
|
|
|
if-lt p1, p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {p2, p1, p3}, Lkotlin/d/c;->k(III)I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p2, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-gez p3, :cond_3
|
|
|
|
if-gt p1, p2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
neg-int v0, p3
|
|
|
|
invoke-static {p1, p2, v0}, Lkotlin/d/c;->k(III)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
:goto_0
|
|
iput p2, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
iput p3, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Step is zero."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Step must be greater than Int.MIN_VALUE to avoid overflow on negation."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Step must be non-zero."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
instance-of v0, p1, Lkotlin/ranges/IntProgression;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lkotlin/ranges/IntProgression;
|
|
|
|
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
check-cast p1, Lkotlin/ranges/IntProgression;
|
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
iget p1, p1, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
if-ne v0, p1, :cond_2
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, -0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isEmpty()Z
|
|
.locals 4
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
if-le v0, v3, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
return v2
|
|
|
|
:cond_1
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
if-ge v0, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
return v2
|
|
.end method
|
|
|
|
.method public synthetic iterator()Ljava/util/Iterator;
|
|
.locals 4
|
|
|
|
new-instance v0, Lkotlin/ranges/a;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lkotlin/ranges/a;-><init>(III)V
|
|
|
|
check-cast v0, Lkotlin/a/aa;
|
|
|
|
check-cast v0, Ljava/util/Iterator;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ".."
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " step "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdk:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " downTo "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdl:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " step "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bdm:I
|
|
|
|
neg-int v1, v1
|
|
|
|
goto :goto_0
|
|
.end method
|