Код: Выделить всё
class GenericClass(
private val param1: String = ""
private val param2: ((String, String) -> Unit)? = null
) { ... }
Код: Выделить всё
public interface IMyInterface1 extends IMyBasicInterface { ... }
public interface IMyInterface2 extends IMyBasicInterface { ... }
Код: Выделить всё
val interfacesSet = setOf(
IMyInterface1::class.java,
IMyInterface2::class.java)
Код: Выделить всё
interfacesSet.forEach { currentInterface ->
val myObj = GenericClass(param1, param2)
.... }
Как мне это сделать?
Подробнее здесь: https://stackoverflow.com/questions/792 ... ric-object
Мобильная версия