Java List Contain isContainedInAll(String keyToSearch, List> list)

Here you can find the source of isContainedInAll(String keyToSearch, List> list)

Description

is Contained In All

License

Open Source License

Declaration

public static boolean isContainedInAll(String keyToSearch, List<Set<String>> list) 

Method Source Code

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

import java.util.List;

import java.util.Set;

public class Main {
    public static boolean isContainedInAll(String keyToSearch, List<Set<String>> list) {
        for (Set<String> otherEquivalenceClassesOID : list) {
            if (!otherEquivalenceClassesOID.contains(keyToSearch)) {
                return false;
            }// w ww . ja va 2  s  .co m
        }
        return true;
    }
}

Related

  1. firstFunnyString(List words, String containedTest)
  2. getListValue(Object container, int index)
  3. identityContains(Object o, List list)
  4. indexOfLineContaining(List lines, String s)
  5. isContain(List list, Integer i)
  6. isContains(final Object value, final Object... list)
  7. isContains(List roles, String role, String module)
  8. isEitherContains(List one, List two)
  9. isListContainAll(List list, T... checkItems)