BitSetIntSet extends GridSerializableCollection<Integer> implements IntSet { @Override public boolean containsAll(@NotNull Collection<?> c) { for (Object o : c) { if (!contains(o)) return false; } return true; } BitSetIntSet();  BitSetIntSet(int initCap);  BitSetIntSet(int initCap, Collection<Integer> coll); @Override int size(); @Override boolean contains(Object o); @Override boolean contains(int element); @NotNull @Override Iterator<Integer> iterator(); @Override boolean add(Integer integer); @Override boolean add(int element); @Override boolean remove(Object o); @Override boolean remove(int element); @Override int[] toIntArray(); @Override boolean containsAll(@NotNull Collection<?> c); @Override boolean addAll(@NotNull Collection<? extends Integer> c); @Override boolean retainAll(@NotNull Collection<?> c); @Override boolean removeAll(@NotNull Collection<?> c); @Override void clear();  }
@Test public void testContainsAll() { IntSet intSet = new BitSetIntSet(); intSet.add(1); intSet.add(10); intSet.add(10); intSet.add(11); intSet.add(1025); assertTrue(intSet.containsAll(new ArrayList<Integer>() {{ add(1); add(10); }})); assertFalse(intSet.containsAll(new ArrayList<Integer>() {{ add(1); add(10); add(11); add(1025); add(1026); }})); assertFalse(intSet.containsAll(new ArrayList<Integer>() {{ add(1); add(10); add(12); }})); }