Code example for Set

Methods: clear

0
 
        public void clear() { 
            lock.lock();
            try { 
                final M map = copy();
                map.keySet().clear();
                set(map);
            } finally { 
                lock.unlock();
            } 
        } 
 
        public boolean remove(final Object o) {
            return AbstractCopyOnWriteMap.this.remove(o) != null;
        } 
 
        public boolean removeAll(final Collection<?> c) {
            lock.lock();
            try { 
                final M map = copy();
                try {