public static void notEmpty ( Map map , String name ) { notNull ( map , name ) ; if ( map . isEmpty ( ) ) { throw new IllegalArgumentException ( name + " must not be empty" ) ; } }
Checks that a given map is not null and not empty .