List of utility methods to do List Contain
boolean | containsAnyOf(Exception e, List contains Any Of Throwable currentException = e; while (currentException != null) { String exceptionMessage = currentException.getMessage(); for (String keyword : nonRetryableKeywords) { if (exceptionMessage != null && exceptionMessage.contains(keyword)) { return true; currentException = currentException.getCause(); return false; |
boolean | containsArgument(List contains Argument List<String> options = new ArrayList<String>(); options.add(option.name()); options.addAll(Arrays.asList(option.aliases())); for (String s : options) { if (argList.contains(s)) return true; return false; ... |
boolean | containsAtLeastAValue(List contains At Least A Value return values != null && !values.isEmpty();
|
boolean | containsAtLeastOneElement(List contains At Least One Element if (l1 == null || l2 == null) return false; for (String s : l1) { if (l2.contains(s)) return true; return false; |
boolean | containsBasedOnEntryIdentity(final List> list, final Object object) contains Based On Entry Identity for (Object obj : list) { if (obj == object) { return true; return false; |
boolean | containsCaseInsensitive(String s, List Returns true if this list contains the specified string element, ignoring case considerations. for (String listItem : l) { if (listItem.equalsIgnoreCase(s)) { return true; return false; |
boolean | containsColumnByAlias(List contains Column By Alias for (String column : columns) { if (getColumnAlias(column).equals(alias)) { return true; return false; |
boolean | containsDuplicates(List Checks whether the given list contains duplicates. Collections.sort(list, comparator); T previous = null; for (T entry : list) { if (previous != null && previous.equals(entry)) { return true; previous = entry; return false; |
boolean | containsElement(List
contains Element boolean found = false; for (List<E> e : list) { if (isEqual(element, e)) { found = true; break; return found; ... |
boolean | containsEnchantment(String enchantments, List contains Enchantment return false;
|