@Test void containsAllLarge() { fillToThreshold(); Set<String> contents = new HashSet<>(); IntStream.range(0, HugeSet.THRESHOLD).mapToObj(Integer::toString).forEach(contents::add); assertTrue(hugeSet.containsAll(contents)); }
@Override public boolean containsAll(Collection<?> c) { if (set == null) return hashSet.containsAll(c); return set.containsAll(c); }
HugeSet implements Set<E>, Closeable { @Override public boolean containsAll(Collection<?> c) { if (set == null) return hashSet.containsAll(c); return set.containsAll(c); } }
HugeSet implements Set<E>, Closeable { @Override public boolean containsAll(Collection<?> c) { if (set == null) return hashSet.containsAll(c); return set.containsAll(c); }  }
HugeSet implements Set<E>, Closeable { @Override public boolean containsAll(Collection<?> c) { if (set == null) return hashSet.containsAll(c); return set.containsAll(c); }  @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E obj); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); @Override void close(); }
HugeSet implements Set<E>, Closeable { @Override public boolean containsAll(Collection<?> c) { if (set == null) return hashSet.containsAll(c); return set.containsAll(c); }  @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E obj); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); @Override void close();  }