Java List Contain containsIgnoreCase(List list, String soughtFor)

Here you can find the source of containsIgnoreCase(List list, String soughtFor)

Description

contains Ignore Case

License

Apache License

Declaration

public static boolean containsIgnoreCase(List<String> list, String soughtFor) 

Method Source Code

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

import java.util.*;

public class Main {
    public static boolean containsIgnoreCase(List<String> list, String soughtFor) {
        for (String current : list) {
            if (current.equalsIgnoreCase(soughtFor)) {
                return true;
            }/*from   w ww .  j a  v a  2  s  .c om*/
        }
        return false;
    }
}

Related

  1. containsIgnoreCase(final String candidate, final List options)
  2. containsIgnoreCase(final String string, final List list)
  3. containsIgnoreCase(List list, String strIn)
  4. containsIgnoreCase(List list, String findMe)
  5. containsIgnoreCase(List list, String s)
  6. containsIgnoreCase(String str, String... list)
  7. containsInAnyOrder(final List test, final List control)
  8. containsIndex(int index, List objects)
  9. containsInEach(List first, List second)