@Test public void testRemove() { int n = set.size(); String element = "foo"; set.add(element); assertTrue(set.isPresent(element)); assertEquals(n + 1, set.size()); set.remove(element); assertFalse(set.isPresent(element)); assertEquals(n, set.size()); }
@Override public void remove(E element) { map.delete(element); }
MySetHashMap implements MySet<E> { @Override public void remove(E element) { map.delete(element); } }
MySetHashMap implements MySet<E> { @Override public void remove(E element) { map.delete(element); }  }
MySetHashMap implements MySet<E> { @Override public void remove(E element) { map.delete(element); }  @Override void add(E element); @Override void remove(E element); @Override boolean isPresent(E element); @Override int size(); }
MySetHashMap implements MySet<E> { @Override public void remove(E element) { map.delete(element); }  @Override void add(E element); @Override void remove(E element); @Override boolean isPresent(E element); @Override int size();  }