code: public synchronized Set<U> removeAll() {
  
          Set<U> result = new HashSet<U>(m_set);
          m_set.clear();
          return result;
      }
docs: Removes all updates from the internal set and returns a new set containing the removed updates.<p>
  
  @return the removed updates