How to implement this Java interface in Kotlin?
If a single implementation, as in @zsmb13’s answer, is not enough for you and you need separate implementations for the two methods in Kotlin, then you can add an intermediate interface overriding the method accepting Integer with a nullable parameter: private interface IntermediateA : A { override fun get(i: Int?): Any } Implementing this interface … Read more