public static < E > void notNullOrEmpty ( final Collection < E > argument , final String name ) { if ( argument == null ) { s_logger . error ( "Argument {} was null" , name ) ; throw new QuandlRuntimeException ( "Value " + name + " was null" ) ; } else if ( argument . size ( ) == 0 ) { s_logger . error ( "Argument {} was empty collection" , name ) ; throw new QuandlRuntimeException ( "Value " + name + " was empty collection" ) ; } }
Throws an exception if the collection argument is not null or empty .