CheckNotNull

This function accepts a nullable argument, and, if it is null, throws an IllegalStateException. Otherwise, it returns the same argument as a non-nullable type:

val strNoNull: String = checkNotNull(str)
{ "str argument can not be null" }
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.12.3