Code example for Map

Methods: entrySet

0
 
    private class EntrySet extends CollectionView<Entry<K, V>> implements Set<Map.Entry<K, V>> {
 
        @Override 
        Collection<java.util.Map.Entry<K, V>> getDelegate() {
            return delegate.entrySet();
        } 
 
        public void clear() { 
            lock.lock();
            try { 
                final M map = copy();
                map.entrySet().clear();
                set(map);
            } finally { 
                lock.unlock();
            } 
        } 
 
        public boolean remove(final Object o) {
            lock.lock();