Top "Kotlin-extension" questions

Kotlin provides the ability to extend a class with new functionality without having to inherit from the class or use any type of design pattern such as Decorator.

How to check "instanceof " class in kotlin?

In kotlin class, I have method parameter as object (See kotlin doc here ) for class type T. As object I …

kotlin kotlin-extension
How to iterate over hashmap in Kotlin?

How to iterate over HashMap in Kotlin? typealias HashMap<K, V> = HashMap<K, V> (source)

kotlin kotlin-extension
throws Exception in a method with Kotlin

I'm trying to convert this Java code to Kotlin: public class HeaderInterceptor implements Interceptor { @Override public Response intercept(Chain chain) …

java kotlin kotlin-extension
How to create a button in Kotlin that opens a new activity (Android Studio)?

Hello I'm making an app using Android Studio and the Kotlin language and am having trouble getting my button to …

android android-studio kotlin kotlin-android-extensions kotlin-extension
Accidental override: The following declarations have the same JVM signature

I'm getting error in Kotlin in this part: class GitHubRepoAdapter( private val context: Context, private val values: List<GithubRepo&…

kotlin kotlin-android-extensions kotlin-extension
Create New Instance of Kotlin Object

I have an object QuickSort that I am attempting to create 2 instances of. When I try to create 2 separate instances …

kotlin kotlin-android-extensions kotlin-extension rx-kotlin
How to extend a data class with toString

I have created a data class data class Something ( val a : String, val b : Object, val c : String ) as later …

kotlin kotlin-extension data-class
Split space from string not working in Kotlin

Anyone wonder this ? Splitting SPACE (" ") in kotlin is not working, i tried with different regex codes but is not working …

android android-studio kotlin kotlin-extension
Kotlin extension function access Java private field

I'd like to access Java's private field when using Kotlin extension function. Suppose I have a Java class ABC. ABC …

kotlin kotlin-extension kotlin-interop
Kotlin Android debounce

Is there any fancy way to implement debounce logic with Kotlin Android? I'm not using Rx in project. There is …

android kotlin kotlin-android-extensions kotlin-extension kotlinx.coroutines