Измените его на
Реализация Java:
Flowable.zip(
Flowable.just("1"),
Flowable.just("2"),
Flowable.just("3"),
Flowable.just("4"),
new Function4<String, String, String, String, MyResult >() {
@Override
public MyResult apply(t1: String, t2: String, t3: String, t4: String) {
// return MyResult
}
})
Реализация Kotlin:
Flowable.zip(
Flowable.just("1"),
Flowable.just("2"),
Flowable.just("3"),
Flowable.just("4"),
object : Function4<String, String, String, String, MyResult > {
override fun apply(t1: String, t2: String, t3: String, t4: String): MyResult {
// return MyResult
}
})