Split Library.kt into several files
For better readbility and discoverability. Also rename String.compareTo parameter to "other", since that is the name of parameter of other compareTo's
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ class JavaToKotlinMethodMapGenerated {
|
||||
);
|
||||
|
||||
put(b, "java.lang.String", "String",
|
||||
pair("compareTo(java.lang.String)", "fun compareTo(that: kotlin.String): kotlin.Int"),
|
||||
pair("compareTo(java.lang.String)", "fun compareTo(other: kotlin.String): kotlin.Int"),
|
||||
pair("equals(java.lang.Object)", "fun equals(other: kotlin.Any?): kotlin.Boolean"),
|
||||
pair("hashCode()", "fun hashCode(): kotlin.Int"),
|
||||
pair("toString()", "fun toString(): kotlin.String")
|
||||
|
||||
@@ -1663,7 +1663,7 @@ public final class String : kotlin.Comparable<kotlin.String>, kotlin.CharSequenc
|
||||
/*primary*/ public constructor String()
|
||||
public open override /*1*/ val length: kotlin.Int
|
||||
public open override /*1*/ fun <get-length>(): kotlin.Int
|
||||
public open override /*1*/ fun compareTo(/*0*/ that: kotlin.String): kotlin.Int
|
||||
public open override /*1*/ fun compareTo(/*0*/ other: kotlin.String): kotlin.Int
|
||||
public open override /*1*/ fun get(/*0*/ index: kotlin.Int): kotlin.Char
|
||||
public final fun plus(/*0*/ other: kotlin.Any?): kotlin.String
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package kotlin
|
||||
|
||||
public trait Annotation
|
||||
@@ -0,0 +1,13 @@
|
||||
package kotlin
|
||||
|
||||
public class Boolean private () : Comparable<Boolean> {
|
||||
public fun not(): Boolean
|
||||
|
||||
public fun and(other: Boolean): Boolean
|
||||
|
||||
public fun or(other: Boolean): Boolean
|
||||
|
||||
public fun xor(other: Boolean): Boolean
|
||||
|
||||
public override fun compareTo(other: Boolean): Int
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package kotlin
|
||||
|
||||
public trait CharSequence {
|
||||
public fun get(index: Int): Char
|
||||
|
||||
public val length: Int
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package kotlin
|
||||
|
||||
public trait Comparable<in T> {
|
||||
public fun compareTo(other: T): Int
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
package kotlin
|
||||
|
||||
public trait Annotation
|
||||
|
||||
public fun Any?.identityEquals(other: Any?): Boolean // = this === other
|
||||
|
||||
public fun Any?.equals(other: Any?): Boolean
|
||||
@@ -10,39 +8,3 @@ public fun Any?.equals(other: Any?): Boolean
|
||||
public fun Any?.toString(): String
|
||||
|
||||
public fun String?.plus(other: Any?): String
|
||||
|
||||
public trait Comparable<in T> {
|
||||
public fun compareTo(other : T) : Int
|
||||
}
|
||||
|
||||
public class Boolean private () : Comparable<Boolean> {
|
||||
public fun not() : Boolean
|
||||
|
||||
public fun and(other : Boolean) : Boolean
|
||||
|
||||
public fun or(other : Boolean) : Boolean
|
||||
|
||||
public fun xor(other : Boolean) : Boolean
|
||||
|
||||
public override fun compareTo(other : Boolean) : Int
|
||||
}
|
||||
|
||||
public trait CharSequence {
|
||||
public fun get(index : Int) : Char
|
||||
|
||||
public val length : Int
|
||||
}
|
||||
|
||||
public class String() : Comparable<String>, CharSequence {
|
||||
public fun plus(other : Any?) : String
|
||||
|
||||
public override fun compareTo(that : String) : Int
|
||||
public override fun get(index : Int) : Char
|
||||
public override val length: Int
|
||||
}
|
||||
|
||||
public open class Throwable(message : String? = null, cause: Throwable? = null) {
|
||||
public fun getMessage() : String?
|
||||
public fun getCause() : Throwable?
|
||||
public fun printStackTrace() : Unit
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package kotlin
|
||||
|
||||
public class String : Comparable<String>, CharSequence {
|
||||
public fun plus(other: Any?): String
|
||||
|
||||
public override fun compareTo(other: String): Int
|
||||
public override fun get(index: Int): Char
|
||||
public override val length: Int
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package kotlin
|
||||
|
||||
public open class Throwable(message: String? = null, cause: Throwable? = null) {
|
||||
public fun getMessage(): String?
|
||||
|
||||
public fun getCause(): Throwable?
|
||||
|
||||
public fun printStackTrace(): Unit
|
||||
}
|
||||
Reference in New Issue
Block a user