Java List Contain stringContains(String line, List list)

Here you can find the source of stringContains(String line, List list)

Description

string Contains

License

Open Source License

Declaration

public static boolean stringContains(String line, List<String> list) 

Method Source Code

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

import java.util.List;

public class Main {
    public static boolean stringContains(String line, List<String> list) {
        for (String s : list)
            if (line.contains(s))
                return true;
        return false;
    }/*from   w  w  w  .  j  ava  2s.c  om*/
}

Related

  1. isListContainAll(List list, T... checkItems)
  2. isListContainsDuplicateElement(List oneList)
  3. pathContains(List path, String source, String label, String target)
  4. replaceWithList(List containingList, String key, List list)
  5. strContainsbyList(String str, List filterList)
  6. stringContainsItemFromList(String inputString, List items)
  7. stringsContainsQuery(String query, List args)