Preconditions

class Preconditions

Contains common assertions.

Functions

Link copied to clipboard
open fun checkArgument(expression: Boolean, message: String)
Link copied to clipboard
open fun <T : Collection<Y>?, Y> checkNotEmpty(collection: T): T
open fun checkNotEmpty(string: String): String
Link copied to clipboard
open fun <T> checkNotNull(arg: T): T
open fun <T> checkNotNull(arg: T, message: String): T