apacheandroid/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
/**
     * Create a List of file filters.
     *
     * @param filters The file filters
     * @return The list of file filters
     * @throws IllegalArgumentException if the filters are null or contain a 
     *         null value.
     * @since 2.0
     */
Create a List of file filters.
@param filters The file filters
@return The list of file filters
@throws IllegalArgumentException if the filters are null or contain a
null value.
Create a List of file filters . @param filters The file filters @return The list of file filters @throws IllegalArgumentException if the filters are null or contain a null value .
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.
Create a List of file filters .