Java Collection Contain isAnyElementContains(String str, Collection col)

Here you can find the source of isAnyElementContains(String str, Collection col)

Description

is Any Element Contains

License

Apache License

Declaration

public static boolean isAnyElementContains(String str, Collection<String> col) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    public static boolean isAnyElementContains(String str, Collection<String> col) {

        for (String url : col) {
            if (str.contains(url)) {
                return true;
            }//w  w  w  . j  av a  2 s  .  c o  m
        }
        return false;
    }
}

Related

  1. containsString(Collection coll, String str)
  2. containsString(String stringToCheck, Collection collection)
  3. containsStringIgnoreCase(Collection strings, String toCheck)
  4. getContainmentRelation(Collection a, Collection b)
  5. intersect(Collection container, Collection contained)
  6. isContained(Collection container, String strSearch)
  7. isNullOrContains(final Collection collection, final T item)
  8. stringContainsOneOfStringsFromCollection(final String pattern, final Collection collection)