package kotlin.ranges; import kotlin.collections.LongIterator; import kotlin.internal.ProgressionUtilKt; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.markers.KMappedMarker; /* loaded from: classes5.dex */ public abstract class LongProgression implements Iterable, KMappedMarker { public static final Companion Companion = new Companion(null); public final long first; public final long last; public final long step; public final long getFirst() { return this.first; } public final long getLast() { return this.last; } public LongProgression(long j, long j2, long j3) { if (j3 == 0) { throw new IllegalArgumentException("Step must be non-zero."); } if (j3 == Long.MIN_VALUE) { throw new IllegalArgumentException("Step must be greater than Long.MIN_VALUE to avoid overflow on negation."); } this.first = j; this.last = ProgressionUtilKt.getProgressionLastElement(j, j2, j3); this.step = j3; } @Override // java.lang.Iterable public LongIterator iterator() { return new LongProgressionIterator(this.first, this.last, this.step); } public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } public Companion() { } } }