checkNotNull

open fun checkNotNull(reference: Any, message: Any)(source)

Ensures that an object reference passed as a parameter to the calling method is not null.

Parameters

reference

an object reference.

message

the exception message to use if the check fails; will be converted to a string using String.valueOf(Object)

Throws


open fun checkNotNull(reference: Any)(source)

Ensures that an object reference passed as a parameter to the calling method is not null.

Parameters

reference

an object reference.

Throws