Code example for Map

Methods: putAll

0
        /** 
         * Views are live (reflecting concurrent updates) and mutator methods 
         * are supported. 
         */ 
        public Builder<K, V> addAll(final Map<? extends K, ? extends V> values) {
            initialValues.putAll(values);
            return this;
        } 
 
        /** 
         * Views are live (reflecting concurrent updates) and mutator methods 
         * are supported. 
         */ 
        public Builder<K, V> liveViews() { 
            viewType = View.Type.LIVE; 
            return this;
        } 
 
        public CopyOnWriteMap<K, V> newHashMap() { 
            return new Hash<K, V>(initialValues, viewType);
        }