Top Description Constructors Methods
io.r2dbc.pool

pack-priv final Class Assert

extends Object
Class Inheritance
Imports
reactor.util.annotation.Nullable

Assertion library for the implementation.
Author
Mark Paluch

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <
the type of the reference
T
>
T

Returns:

t if not null
requireNonNull
(T
the object reference to check for nullity
t
,
String
the detail message to be used in the event that an IllegalArgumentException is thrown
message
)

Checks that a specified object reference is not null and throws a customized IllegalArgumentException if it is.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Assertback to summary
private Assert()

Method Detail

requireNonNullback to summary
public static <T> T requireNonNull(T t, String message)

Checks that a specified object reference is not null and throws a customized IllegalArgumentException if it is.

Parameters
<T>
the type of the reference
t:T

the object reference to check for nullity

message:String

the detail message to be used in the event that an IllegalArgumentException is thrown

Returns:T

t if not null

Exceptions
IllegalArgumentException:
if t is {code null}