Here you can find the source of strContainsbyList(String str, List
Parameter | Description |
---|---|
str | a parameter |
filterList | a parameter |
public static Boolean strContainsbyList(String str, List<String> filterList)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**//from w w w. j a v a 2s . c o m * check each line whether contains special str * * @param str * @param filterList * @return */ public static Boolean strContainsbyList(String str, List<String> filterList) { Boolean strFounded = false; for (int i = 0; i < filterList.size(); i++) { if (str.contains(filterList.get(i))) { strFounded = true; break; } //System.out.println(list.get(i)); } return strFounded; } }