001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    import com.liferay.portal.kernel.concurrent.ConcurrentReferenceValueHashMap;
018    import com.liferay.portal.kernel.memory.FinalizeManager;
019    
020    import java.util.Map;
021    
022    /**
023     * @author     Shuyang Zhou
024     * @deprecated As of 7.0.0, replaced by {@link ConcurrentReferenceValueHashMap}
025     */
026    @Deprecated
027    public class WeakValueConcurrentHashMap<K, V>
028            extends ConcurrentReferenceValueHashMap<K, V> {
029    
030            public WeakValueConcurrentHashMap() {
031                    super(FinalizeManager.WEAK_REFERENCE_FACTORY);
032            }
033    
034            public WeakValueConcurrentHashMap(int initialCapacity) {
035                    super(initialCapacity, FinalizeManager.WEAK_REFERENCE_FACTORY);
036            }
037    
038            public WeakValueConcurrentHashMap(
039                    int initialCapacity, float loadFactor, int concurrencyLevel) {
040    
041                    super(
042                            initialCapacity, loadFactor, concurrencyLevel,
043                            FinalizeManager.WEAK_REFERENCE_FACTORY);
044            }
045    
046            public WeakValueConcurrentHashMap(Map<? extends K, ? extends V> map) {
047                    super(map, FinalizeManager.WEAK_REFERENCE_FACTORY);
048            }
049    
050    }