Java List Contain stringContainsItemFromList(String inputString, List items)

Here you can find the source of stringContainsItemFromList(String inputString, List items)

Description

string Contains Item From List

License

Open Source License

Declaration

private static boolean stringContainsItemFromList(String inputString,
            List<String> items) 

Method Source Code

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

import java.util.*;

public class Main {
    private static boolean stringContainsItemFromList(String inputString,
            List<String> items) {
        for (String item : items) {
            if (inputString.contains(item)) {
                return true;
            }//from   w  ww.  j  av  a2 s  .  c  o  m
        }
        return false;
    }
}

Related

  1. isListContainsDuplicateElement(List oneList)
  2. pathContains(List path, String source, String label, String target)
  3. replaceWithList(List containingList, String key, List list)
  4. strContainsbyList(String str, List filterList)
  5. stringContains(String line, List list)
  6. stringsContainsQuery(String query, List args)