Java List Contain containsFileName(String fileName, List filterList)

Here you can find the source of containsFileName(String fileName, List filterList)

Description

contains File Name

License

Apache License

Declaration

public static boolean containsFileName(String fileName,
            List<String> filterList) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static boolean containsFileName(String fileName,
            List<String> filterList) {
        if (filterList == null || filterList.size() == 0) {
            return true;
        }//from  w w w.  j a  v  a  2s . c om
        for (String filter : filterList) {
            if (fileName.contains(filter)) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. containsElement( List> list, List element)
  2. containsEnchantment(String enchantments, List enchList)
  3. containsExactly(Collection list, T... mustHaveItems)
  4. containsExactly(List items, T... itemsToMatch)
  5. containsExternalFilter(List filterList, String dataSetExtId, String dataSourceExtId)
  6. containsHelpRequest(List args)
  7. containsId(List aList, Object anObj)
  8. containsIgnoreCase(final String candidate, final List options)
  9. containsIgnoreCase(final String string, final List list)