public static < T > Iterable < T > checkNoNullInside ( Iterable < T > argument , String errorMessage ) { if ( argument == null ) { return argument ; } for ( T element : argument ) { checkNotNull ( element , errorMessage ) ; } return argument ; }
Tests if the elements inside the argument collection are not null . If collection is null or empty the test is ignored .