Java List Contain containsIgnoreCase(final String string, final List list)

Here you can find the source of containsIgnoreCase(final String string, final List list)

Description

contains Ignore Case

License

Open Source License

Declaration

public static final synchronized Boolean containsIgnoreCase(final String string, final List<?> list) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static final synchronized Boolean containsIgnoreCase(final String string, final List<?> list) {
        for (Object object : list) {
            if (string.toLowerCase().contains(object.toString().toLowerCase())) {
                return true;
            }/*from  ww w  .  j  a v a  2s  .  c o  m*/
        }
        return false;
    }
}

Related

  1. containsExternalFilter(List filterList, String dataSetExtId, String dataSourceExtId)
  2. containsFileName(String fileName, List filterList)
  3. containsHelpRequest(List args)
  4. containsId(List aList, Object anObj)
  5. containsIgnoreCase(final String candidate, final List options)
  6. containsIgnoreCase(List list, String strIn)
  7. containsIgnoreCase(List list, String findMe)
  8. containsIgnoreCase(List list, String s)
  9. containsIgnoreCase(List list, String soughtFor)