[英]What does this lambda in curly braces mean in Java?
I saw syntax like我看到了类似的语法
.subscribe{ response -> ... something }
In relation with RxJava.与 RxJava 相关。
What does it mean, what is it's name and how it differs from just lambda这是什么意思,它的名称是什么以及它与 lambda 有何不同
.subscribe( response -> ... something );
It's probably not Java but Kotlin, a JVM language that interoperates with Java.可能不是 Java 而是 Kotlin,一种与 ZD523197880E1EA2283 互操作的 JVM 语言。 Kotlin can be used with Java libraries like RxJava.
Kotlin 可以与 RxJava 等 Java 库一起使用。 It's not uncommon to find projects that mix Java and Kotlin, and to find documentation that provides examples in both languages.
找到混合 Java 和 Kotlin 的项目并找到提供两种语言示例的文档并不少见。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.