public static void isNotEmpty ( Collection < ? > argument , String name ) { isNotNull ( argument , name ) ; if ( argument . isEmpty ( ) ) { throw new IllegalArgumentException ( CommonI18n . argumentMayNotBeEmpty . text ( name ) ) ; } }
Check that the collection is not empty