public static void hasSizeOfAtMost ( Object [ ] argument , int maximumSize , String name ) { isNotNull ( argument , name ) ; if ( argument . length > maximumSize ) { throw new IllegalArgumentException ( CommonI18n . argumentMustBeOfMinimumSize . text ( name , Object [ ] . class . getSimpleName ( ) , argument . length , maximumSize ) ) ; } }
Check that the array contains no more than the supplied number of elements