Here you can find the source of isListContainAll(List
@SafeVarargs public static <T> boolean isListContainAll(List<T> list, T... checkItems)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { @SafeVarargs public static <T> boolean isListContainAll(List<T> list, T... checkItems) { boolean result = true; if (list.size() > 0 && checkItems.length > 0) { for (T t : checkItems) { if (!list.contains(t)) { result = false;//from w w w . j a v a2 s .com break; } } } else { result = false; } return result; } }