public static void checkArgument ( boolean validCondition , String argName , String message , Object ... args ) throws IllegalArgumentException { if ( ! validCondition ) { throw new IllegalArgumentException ( badArgumentMessage ( argName , message , args ) ) ; } }
Throws an IllegalArgumentException if the validCondition argument is false .