/** * This removes all the items. It clears the map and the double linked list. * <p> * @see java.util.Map#clear() */ @Override public void clear() { lock.lock(); try { map.clear(); list.removeAll(); } finally { lock.unlock(); } }
/** * Remove all of the elements from both the Map and the linked list implementation. Overrides * base class. * <p> * * @throws IOException */ @Override public void removeAll() throws IOException { lock.lock(); try { list.removeAll(); map.clear(); } finally { lock.unlock(); } }
/** * This removes all the items. It clears the map and the double linked list. * <p> * @see java.util.Map#clear() */ @Override public void clear() { lock.lock(); try { map.clear(); list.removeAll(); } finally { lock.unlock(); } }
/** * Remove all of the elements from both the Map and the linked list implementation. Overrides * base class. * <p> * @throws IOException */ @Override public void removeAll() throws IOException { lock.lock(); try { list.removeAll(); map.clear(); } finally { lock.unlock(); } }