![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Kotlin
Bing0lin
零散知识记录
展开
-
Kotlin-filed 属性字段 幕后字段 幕后属性 TODO
Refrence https://blog.csdn.net/chentaishan/article/details/120908285 https://blog.csdn.net/arinasiyyj/article/details/113767299 https://blog.csdn.net/guojingbu/article/details/121185954 https://www.jianshu.com/p/2da4b3bdfe3e原创 2021-11-29 22:13:40 · 1594 阅读 · 0 评论 -
Kotlin-null空值判断和操作符
Refrence https://www.jianshu.com/p/9f5095fccaa7 即 ?. 和 ?: 的区分 code1?.code2 code1?:code2 首先我们试图去从字面意义了解它: code1?.code2 翻译为 :if code1 Not Null 执行 code2; code1?:code2 翻译为:if code1 Null 执行 code2; ?. 翻译为: If Not Null ?: 翻译为: If Null 如果是”?.“ 即表示if not null 并执行后续转载 2021-11-29 22:06:20 · 698 阅读 · 0 评论