protected void checkNull ( Object ... objects ) { for ( Object object : objects ) { if ( object == null ) { throw new ModelsIllegalargumentException ( "Mandatory input argument is missing. Check your syntax..." , this . getClass ( ) . getSimpleName ( ) , pm ) ; } } }
Checks if the passed objects are all ! = null and if one is null throws Exception .