Top Description Constructors Methods
io.r2dbc.spi

pack-priv abstract Class Assert

extends Object
Class Inheritance

Non-public assertion library for SPI implementations.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

s if not empty
requireNonEmpty
(String
the String to check for emptiness
s
,
String
the detail message to be used in the event that an IllegalArgumentException is thrown
message
)

Checks that a specified String is not empty and throws a customized IllegalArgumentException if it is.

pack-priv 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

requireNonEmptyback to summary
pack-priv static String requireNonEmpty(String s, String message)

Checks that a specified String is not empty and throws a customized IllegalArgumentException if it is.

Parameters
s:String

the String to check for emptiness

message:String

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

Returns:String

s if not empty

Exceptions
IllegalArgumentException:
if s is empty
requireNonNullback to summary
pack-priv 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}