jakub.dyszkiewicz
08/28/2018, 9:29 AMString#toString
implementation?
I can see in Java
public String toString() {
return this;
}
but I can’t see this in Kotlin.
public class String : Comparable<String>, CharSequence {
companion object {}
/**
* Returns a string obtained by concatenating this string with the string representation of the given [other] object.
*/
public operator fun plus(other: Any?): String
public override val length: Int
public override fun get(index: Int): Char
public override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
public override fun compareTo(other: String): Int
}
I can’t find extension function either…karelpeeters
08/28/2018, 10:09 AM