@Test void retainAll() { List<String> contents = Arrays.asList("test1", "test2", "test3"); hugeSet.addAll(contents); hugeSet.retainAll(Arrays.asList("test2", "test3")); assertEquals(2, hugeSet.size()); }
@Override public boolean retainAll(Collection<?> c) { if (set == null) return hashSet.retainAll(c); return set.retainAll(c); }
HugeSet implements Set<E>, Closeable { @Override public boolean retainAll(Collection<?> c) { if (set == null) return hashSet.retainAll(c); return set.retainAll(c); } }
HugeSet implements Set<E>, Closeable { @Override public boolean retainAll(Collection<?> c) { if (set == null) return hashSet.retainAll(c); return set.retainAll(c); }  }
HugeSet implements Set<E>, Closeable { @Override public boolean retainAll(Collection<?> c) { if (set == null) return hashSet.retainAll(c); return set.retainAll(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 retainAll(Collection<?> c) { if (set == null) return hashSet.retainAll(c); return set.retainAll(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();  }