Java Set Search containsCaseInsensitive(String s, Set l)

Here you can find the source of containsCaseInsensitive(String s, Set l)

Description

contains Case Insensitive

License

Open Source License

Declaration

public static boolean containsCaseInsensitive(String s, Set<String> l) 

Method Source Code

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

import java.util.*;

public class Main {
    public static boolean containsCaseInsensitive(String s, Set<String> l) {
        for (String string : l) {
            if (string.equalsIgnoreCase(s)) {
                return true;
            }//from  ww  w.jav a2  s  .  c om
        }
        return false;
    }
}

Related

  1. contains(BitSet x, BitSet y)
  2. Contains(Set s, Object o)
  3. contains(Set setTocheck, Set mustHaveAllThese)
  4. containsAny(Set container, Set possibilities)
  5. containsSome(Set one, Set two)