io.polaris.core.map.SoftHashMap Maven / Gradle / Ivy
package io.polaris.core.map;
import io.polaris.core.map.reference.ReferenceType;
import java.util.HashMap;
import java.util.Map;
/**
* @author Qt
* @since 1.8
*/
public class SoftHashMap extends ReferenceMap {
public SoftHashMap(int initialCapacity, float loadFactor) {
super(new HashMap<>(initialCapacity, loadFactor), ReferenceType.SOFT);
}
public SoftHashMap(int initialCapacity) {
super(new HashMap<>(initialCapacity), ReferenceType.SOFT);
}
public SoftHashMap() {
super(new HashMap<>(), ReferenceType.SOFT);
}
public SoftHashMap(Map t) {
super(new HashMap<>(), ReferenceType.SOFT);
putAll(t);
}
}