public static void checkNotNull ( Object param , String errorMessagePrefix ) throws IllegalArgumentException { checkArgument ( param != null , ( errorMessagePrefix != null ? errorMessagePrefix : "Parameter" ) + " must not be null." ) ; }
Check that a parameter is not null and throw IllegalArgumentException with a message of errorMessagePrefix + must not be null . if it is null defaulting to Parameter must not be null . .