checkNotNull

public static T checkNotNull<T>(T reference)

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

Return

the non-null reference that was validated

Parameters

reference

an object reference

Throws

if reference is null