Code example for Collection

Methods: removeAll

0
        public boolean removeAll(final Collection<?> c) {
            lock.lock();
            try { 
                final M map = copy();
                try { 
                    return map.values().removeAll(c);
                } finally { 
                    set(map);
                } 
            } finally { 
                lock.unlock();
            } 
        } 
 
        public boolean retainAll(final Collection<?> c) {
            lock.lock();
            try { 
                final M map = copy();
                try { 
                    return map.values().retainAll(c);
                } finally {