Java Collection Contain containsIgnoreCase4Collections(Collection c, String s)

Here you can find the source of containsIgnoreCase4Collections(Collection c, String s)

Description

contains Ignore Case Collections

License

Apache License

Declaration

public static boolean containsIgnoreCase4Collections(Collection<String> c, String s) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public static boolean containsIgnoreCase4Collections(Collection<String> c, String s) {
        if (c == null || s == null) {
            return false;
        }// w ww  . java 2 s .  c  o m

        for (String string : c) {
            if (string.equalsIgnoreCase(s)) {
                return true;
            }
        }

        return false;
    }
}

Related

  1. containsIgnoreCase(Collection c, String str)
  2. containsIgnoreCase(Collection collection, String testString)
  3. containsIgnoreCase(Collection collection, String value)
  4. containsIgnoreCase(Collection l, String s)
  5. containsIgnoreCase(String searchedWord, Collection words)
  6. containsInstance(Collection collection, Object element)
  7. containsInstance(Collection collection, Object element)
  8. containsInstanceOf(Collection collection, Class c)
  9. containsKey(Collection keys, String key)