.class public final Lkotlin/ranges/IntRange; .super Lkotlin/ranges/IntProgression; .source "PrimitiveRanges.kt" # interfaces .implements Lkotlin/ranges/ClosedRange; .implements Lkotlin/ranges/OpenEndRange; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkotlin/ranges/IntRange$Companion; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lkotlin/ranges/IntProgression;", "Lkotlin/ranges/ClosedRange<", "Ljava/lang/Integer;", ">;", "Lkotlin/ranges/OpenEndRange<", "Ljava/lang/Integer;", ">;" } .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0008\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\u000b\n\u0002\u0008\u0003\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0018\u0000 \u00192\u00020\u00012\u0008\u0012\u0004\u0012\u00020\u00030\u00022\u0008\u0012\u0004\u0012\u00020\u00030\u0004:\u0001\u0019B\u0015\u0012\u0006\u0010\u0005\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0007J\u0011\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0003H\u0096\u0002J\u0013\u0010\u0012\u001a\u00020\u00102\u0008\u0010\u0013\u001a\u0004\u0018\u00010\u0014H\u0096\u0002J\u0008\u0010\u0015\u001a\u00020\u0003H\u0016J\u0008\u0010\u0016\u001a\u00020\u0010H\u0016J\u0008\u0010\u0017\u001a\u00020\u0018H\u0016R\u001a\u0010\u0008\u001a\u00020\u00038VX\u0097\u0004\u00a2\u0006\u000c\u0012\u0004\u0008\t\u0010\n\u001a\u0004\u0008\u000b\u0010\u000cR\u0014\u0010\u0006\u001a\u00020\u00038VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\r\u0010\u000cR\u0014\u0010\u0005\u001a\u00020\u00038VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u000e\u0010\u000c\u00a8\u0006\u001a" } d2 = { "Lkotlin/ranges/IntRange;", "Lkotlin/ranges/IntProgression;", "Lkotlin/ranges/ClosedRange;", "", "Lkotlin/ranges/OpenEndRange;", "start", "endInclusive", "(II)V", "endExclusive", "getEndExclusive$annotations", "()V", "getEndExclusive", "()Ljava/lang/Integer;", "getEndInclusive", "getStart", "contains", "", "value", "equals", "other", "", "hashCode", "isEmpty", "toString", "", "Companion", "kotlin-stdlib" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # static fields .field public static final Companion:Lkotlin/ranges/IntRange$Companion; .field private static final EMPTY:Lkotlin/ranges/IntRange; # direct methods .method static constructor ()V .locals 3 new-instance v0, Lkotlin/ranges/IntRange$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lkotlin/ranges/IntRange$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lkotlin/ranges/IntRange;->Companion:Lkotlin/ranges/IntRange$Companion; .line 84 new-instance v0, Lkotlin/ranges/IntRange; const/4 v1, 0x1 const/4 v2, 0x0 invoke-direct {v0, v1, v2}, Lkotlin/ranges/IntRange;->(II)V sput-object v0, Lkotlin/ranges/IntRange;->EMPTY:Lkotlin/ranges/IntRange; return-void .end method .method public constructor (II)V .locals 1 const/4 v0, 0x1 .line 52 invoke-direct {p0, p1, p2, v0}, Lkotlin/ranges/IntProgression;->(III)V return-void .end method .method public static final synthetic access$getEMPTY$cp()Lkotlin/ranges/IntRange; .locals 1 sget-object v0, Lkotlin/ranges/IntRange;->EMPTY:Lkotlin/ranges/IntRange; return-object v0 .end method .method public static synthetic getEndExclusive$annotations()V .locals 0 .annotation runtime Lkotlin/Deprecated; message = "Can throw an exception when it\'s impossible to represent the value with Int type, for example, when the range includes MAX_VALUE. It\'s recommended to use \'endInclusive\' property that doesn\'t throw." .end annotation return-void .end method # virtual methods .method public contains(I)Z .locals 1 .line 64 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result v0 if-gt v0, p1, :cond_0 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 if-gt p1, p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public bridge synthetic contains(Ljava/lang/Comparable;)Z .locals 0 .line 52 check-cast p1, Ljava/lang/Number; invoke-virtual {p1}, Ljava/lang/Number;->intValue()I move-result p1 invoke-virtual {p0, p1}, Lkotlin/ranges/IntRange;->contains(I)Z move-result p0 return p0 .end method .method public equals(Ljava/lang/Object;)Z .locals 2 .line 74 instance-of v0, p1, Lkotlin/ranges/IntRange; if-eqz v0, :cond_2 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 move-object v0, p1 check-cast v0, Lkotlin/ranges/IntRange; invoke-virtual {v0}, Lkotlin/ranges/IntRange;->isEmpty()Z move-result v0 if-nez v0, :cond_1 .line 75 :cond_0 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result v0 check-cast p1, Lkotlin/ranges/IntRange; invoke-virtual {p1}, Lkotlin/ranges/IntRange;->getFirst()I move-result v1 if-ne v0, v1, :cond_2 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 invoke-virtual {p1}, Lkotlin/ranges/IntRange;->getLast()I move-result p1 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 bridge synthetic getEndExclusive()Ljava/lang/Comparable; .locals 0 .line 52 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getEndExclusive()Ljava/lang/Integer; move-result-object p0 check-cast p0, Ljava/lang/Comparable; return-object p0 .end method .method public getEndExclusive()Ljava/lang/Integer; .locals 2 .line 60 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result v0 const v1, 0x7fffffff if-eq v0, v1, :cond_0 .line 61 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 add-int/lit8 p0, p0, 0x1 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 return-object p0 .line 60 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "Cannot return the exclusive upper bound of a range that includes MAX_VALUE." invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public bridge synthetic getEndInclusive()Ljava/lang/Comparable; .locals 0 .line 52 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getEndInclusive()Ljava/lang/Integer; move-result-object p0 check-cast p0, Ljava/lang/Comparable; return-object p0 .end method .method public getEndInclusive()Ljava/lang/Integer; .locals 0 .line 54 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 return-object p0 .end method .method public bridge synthetic getStart()Ljava/lang/Comparable; .locals 0 .line 52 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getStart()Ljava/lang/Integer; move-result-object p0 check-cast p0, Ljava/lang/Comparable; return-object p0 .end method .method public getStart()Ljava/lang/Integer; .locals 0 .line 53 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result p0 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 return-object p0 .end method .method public hashCode()I .locals 1 .line 78 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 const/4 p0, -0x1 goto :goto_0 :cond_0 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result v0 mul-int/lit8 v0, v0, 0x1f invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 add-int/2addr p0, v0 :goto_0 return p0 .end method .method public isEmpty()Z .locals 1 .line 71 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result v0 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 if-le v0, p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 80 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getFirst()I move-result v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ".." invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {p0}, Lkotlin/ranges/IntRange;->getLast()I move-result p0 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