List of utility methods to do Collection Contains
boolean | contains(Collection Answers true if a predicate is true for at least one element of a collection. return collection != null && collection.size() > 0 ? collection
.contains(value) : false;
|
boolean | containsInstance(Collection collection, Object element) Check whether the given Collection contains the given element instance. if (collection != null) { for (Object candidate : collection) { if (candidate == element) { return true; return false; ... |
boolean | containsInstance(Collection> collection, Object element) Check whether the given Collection contains the given element instance. if (collection != null) { for (Object candidate : collection) { if (candidate == element) { return true; return false; ... |