/** Ensures that an object reference is not null, with an error message. */ public static void checkNotNull(Object reference, String errorMessage) { checkNotNullInternal(reference, true, errorMessage, EMPTY_ARGUMENTS); }
/** Ensures that an object reference is not null, with an error message that takes arguments. */ public static void checkNotNull( Object reference, String errorMessageTemplate, Object... errorMessageArgs) { checkNotNullInternal(reference, true, errorMessageTemplate, errorMessageArgs); }
/** Ensures that an object reference is not null. */ public static void checkNotNull(Object reference) { checkNotNullInternal(reference, true, "Object can not be null.", EMPTY_ARGUMENTS); }