List of utility methods to do List Contain
boolean | pathContains(List path Contains for (int i = 0; i < path.size() - 2; i += 2) { if (path.get(i).equals(source)) { if (path.get(i + 1).equals(label) && path.get(i + 2).equals(target)) return true; return false; |
List | replaceWithList(List replace With List if (containingList == null) { throw new IllegalArgumentException("List<String> cannot be null"); if (key == null) { throw new IllegalArgumentException("String cannot be null"); if (list == null) { throw new IllegalArgumentException("List<String> cannot be null"); ... |
Boolean | strContainsbyList(String str, List check each line whether contains special str Boolean strFounded = false; for (int i = 0; i < filterList.size(); i++) { if (str.contains(filterList.get(i))) { strFounded = true; break; return strFounded; ... |
boolean | stringContains(String line, List string Contains for (String s : list) if (line.contains(s)) return true; return false; |
boolean | stringContainsItemFromList(String inputString, List string Contains Item From List for (String item : items) { if (inputString.contains(item)) { return true; return false; |
boolean | stringsContainsQuery(String query, List strings Contains Query boolean result = false; for (String field : args) { if (field != null && field.toUpperCase().contains(query.toUpperCase())) { result = true; break; return result; ... |