public static List<IOFileFilter> toList(IOFileFilter... filters){
  if (filters == null) {
    throw new IllegalArgumentException("The filters must not be null");
  }
  List<IOFileFilter> list=new ArrayList<IOFileFilter>(filters.length);
  for (int i=0; i < filters.length; i++) {
    if (filters[i] == null) {
      throw new IllegalArgumentException("The filter[" + i + "] is null");
    }
    list.add(filters[i]);
  }
  return list;
}

public static List < IOFileFilter > toList ( IOFileFilter ... filters ) { if ( filters == null ) { throw new IllegalArgumentException ( "The filters must not be null" ) ; } List < IOFileFilter > list = new ArrayList < IOFileFilter > ( filters . length ) ; for ( int i = 0 ; i < filters . length ; i ++ ) { if ( filters [ i ] == null ) { throw new IllegalArgumentException ( "The filter[" + i + "] is null" ) ; } list . add ( filters [ i ] ) ; } return list ; }
create a list of file filters .
