.class public abstract Lkotlin/ranges/LongProgression; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Ljava/lang/Iterable; .implements Lkotlin/jvm/internal/markers/KMappedMarker; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkotlin/ranges/LongProgression$Companion; } .end annotation # static fields .field public static final Companion:Lkotlin/ranges/LongProgression$Companion; # instance fields .field public final first:J .field public final last:J .field public final step:J # direct methods .method static constructor ()V .locals 2 new-instance v0, Lkotlin/ranges/LongProgression$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lkotlin/ranges/LongProgression$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lkotlin/ranges/LongProgression;->Companion:Lkotlin/ranges/LongProgression$Companion; return-void .end method .method public constructor (JJJ)V .locals 2 .line 139 invoke-direct {p0}, Ljava/lang/Object;->()V const-wide/16 v0, 0x0 cmp-long v0, p5, v0 if-eqz v0, :cond_1 const-wide/high16 v0, -0x8000000000000000L cmp-long v0, p5, v0 if-eqz v0, :cond_0 iput-wide p1, p0, Lkotlin/ranges/LongProgression;->first:J .line 159 invoke-static/range {p1 .. p6}, Lkotlin/internal/ProgressionUtilKt;->getProgressionLastElement(JJJ)J move-result-wide p1 iput-wide p1, p0, Lkotlin/ranges/LongProgression;->last:J iput-wide p5, p0, Lkotlin/ranges/LongProgression;->step:J return-void .line 148 :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Step must be greater than Long.MIN_VALUE to avoid overflow on negation." invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .line 147 :cond_1 new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "Step must be non-zero." invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method # virtual methods .method public final getFirst()J .locals 2 iget-wide v0, p0, Lkotlin/ranges/LongProgression;->first:J return-wide v0 .end method .method public final getLast()J .locals 2 iget-wide v0, p0, Lkotlin/ranges/LongProgression;->last:J return-wide v0 .end method .method public bridge synthetic iterator()Ljava/util/Iterator; .locals 1 .line 139 invoke-virtual {p0}, Lkotlin/ranges/LongProgression;->iterator()Lkotlin/collections/LongIterator; move-result-object v0 return-object v0 .end method .method public iterator()Lkotlin/collections/LongIterator; .locals 8 .line 166 new-instance v7, Lkotlin/ranges/LongProgressionIterator; iget-wide v1, p0, Lkotlin/ranges/LongProgression;->first:J iget-wide v3, p0, Lkotlin/ranges/LongProgression;->last:J iget-wide v5, p0, Lkotlin/ranges/LongProgression;->step:J move-object v0, v7 invoke-direct/range {v0 .. v6}, Lkotlin/ranges/LongProgressionIterator;->(JJJ)V return-object v7 .end method