Java List Contain containsAllIgnoreCase(List left, List right)

Here you can find the source of containsAllIgnoreCase(List left, List right)

Description

contains All Ignore Case

License

Open Source License

Declaration

private static boolean containsAllIgnoreCase(List<String> left,
            List<String> right) 

Method Source Code

//package com.java2s;
/**/*from w ww  . j  a va 2  s .  com*/
 * Determines if the specific license type is enabled.
 * 
 * @param type
 *            the type of the license.
 * @return true if the license is found.
 */

import java.util.*;

public class Main {
    private static boolean containsAllIgnoreCase(List<String> left,
            List<String> right) {
        for (String rightString : right) {
            if (!containsIgnoreCase(left, rightString)) {
                return false;
            }
        }
        return true;
    }

    private static boolean containsIgnoreCase(List<String> left,
            String rightString) {
        for (String leftString : left) {
            if (leftString.equalsIgnoreCase(rightString)) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. contains(List container, List list, Comparator comparator)
  2. contains(String str, List list)
  3. contains1(final String id, final List idList)
  4. containsAFloatingPointNumber(List values)
  5. containsAll(List list, T... items)
  6. containsAny(final String projectName, final List indicators)
  7. containsAny(List value, Object[] values)
  8. containsAny(Set theList, Set toSearch)
  9. containsAnyOf(Exception e, List nonRetryableKeywords)