Java 类com.intellij.util.containers.SoftValueHashMap 实例源码

项目:intellij-ce-playground    文件:SoftHardCacheMap.java   
public SoftHardCacheMap(final int protectedQueueSize, final int probationalQueueSize) {
  mySLRUMap = new SLRUMap<K, V>(protectedQueueSize, probationalQueueSize);
  mySoftLinkMap = new SoftValueHashMap<K, V>();
}
项目:intellij-ce-playground    文件:AntTasksProvider.java   
@Nullable
@Override
public CachedValueProvider.Result<Map<List<URL>, AntClassLoader>> compute(Project project) {
  final Map<List<URL>, AntClassLoader> map = new SoftValueHashMap<List<URL>, AntClassLoader>();
  return CachedValueProvider.Result.create(map, ProjectRootManager.getInstance(project));
}
项目:consulo    文件:SoftHardCacheMap.java   
public SoftHardCacheMap(final int protectedQueueSize, final int probationalQueueSize) {
  mySLRUMap = new SLRUMap<K, V>(protectedQueueSize, probationalQueueSize);
  mySoftLinkMap = new SoftValueHashMap<K, V>();
}