August 2018
Beginner
178 pages
4h 56m
English
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" }
Read now
Unlock full access