List of utility methods to do List Contain
boolean | containsExactly(Collection Checks if the collection contains exactly the given mustHaveItems. return containsExactly(list, Arrays.asList(mustHaveItems));
|
boolean | containsExactly(List contains Exactly if (items.size() != itemsToMatch.length) { return false; for (int i = 0; i < items.size(); i++) { if (!items.get(i).equals(itemsToMatch[i])) { return false; return true; |
boolean | containsExternalFilter(List filterList, String dataSetExtId, String dataSourceExtId) contains External Filter return false;
|
boolean | containsFileName(String fileName, List contains File Name if (filterList == null || filterList.size() == 0) { return true; for (String filter : filterList) { if (fileName.contains(filter)) { return true; return false; |
boolean | containsHelpRequest(List contains Help Request boolean containsHelp = false; for (String arg : args) { if (isHelpRequest(arg)) { containsHelp = true; break; return containsHelp; ... |
boolean | containsId(List aList, Object anObj) Returns whether list contains identical given object (accepts null list). return indexOfId(aList, anObj) >= 0;
|
Boolean | containsIgnoreCase(final String candidate, final List contains Ignore Case for (String option : options) { if (option.equalsIgnoreCase(candidate)) { return true; return false; |
Boolean | containsIgnoreCase(final String string, final List> list) contains Ignore Case for (Object object : list) { if (string.toLowerCase().contains(object.toString().toLowerCase())) { return true; return false; |
boolean | containsIgnoreCase(List list, String strIn) contains Ignore Case boolean result = false; if (strIn != null) if (list != null) for (Iterator iter = list.iterator(); iter.hasNext();) { String str = (String) iter.next(); if (strIn.equalsIgnoreCase(str)) { ... |
boolean | containsIgnoreCase(List contains Ignore Case for (String s : list) { if (findMe.equalsIgnoreCase(s)) { return true; return false; |