What is the difference between Flowable<List<VanDataModel>>
and Flowable<List<VanDataModel!>!>
in Kotlin using Rx ?
Asked
Active
Viewed 146 times
2

Sujin Shrestha
- 1,203
- 2
- 13
- 23
-
https://kotlinlang.org/docs/reference/java-interop.html#null-safety-and-platform-types – Nerdy Bunz Apr 05 '18 at 06:14
1 Answers
4
It's Kotlin, not RxJava. A type notated with !
is called platform type coming from Java APIs. You could refer to platform types as "types of unknown nullability". Also important to know is that you cannot use the exclamation-marked type for your own types, it's not part of the Kotlin syntax, it's only a notation
See this.

s1m0nw1
- 76,759
- 17
- 167
- 196