public static <T>T[] notNullElements(T[] array,String name){
  notEmpty(Arrays.asList(array),name);
  for (  T ele : array) {
    notNull(ele,String.format("Collection %s element %s",name,ele));
  }
  return array;
}

public static < T > T [ ] notNullElements ( T [ ] array , String name ) { notEmpty ( Arrays . asList ( array ) , name ) ; for ( T ele : array ) { notNull ( ele , String . format ( "Collection %s element %s" , name , ele ) ) ; } return array ; }
check that a list is not null and that none of its elements is null . if null or if the list has emtpy elements throws an illegalargumentexception .
