RequireNotNull

This is the same as with checkNotNull,  but with the difference that it throws an instance of the IllegalArgumentException class:

val strNoNulls: String = requireNotNull(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.16.82.82