Java List Contain containsAny(final String projectName, final List indicators)

Here you can find the source of containsAny(final String projectName, final List indicators)

Description

contains Any

License

Open Source License

Declaration

public static boolean containsAny(final String projectName, final List<String> indicators) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static boolean containsAny(final String projectName, final List<String> indicators) {
        for (final String indicator : indicators) {
            if (projectName.toLowerCase().startsWith(indicator.toLowerCase())) {
                return true;
            }/* w  w  w . ja  v a  2  s. com*/
        }
        return false;
    }
}

Related

  1. contains(String str, List list)
  2. contains1(final String id, final List idList)
  3. containsAFloatingPointNumber(List values)
  4. containsAll(List list, T... items)
  5. containsAllIgnoreCase(List left, List right)
  6. containsAny(List value, Object[] values)
  7. containsAny(Set theList, Set toSearch)
  8. containsAnyOf(Exception e, List nonRetryableKeywords)
  9. containsArgument(List argList, Option option)