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

项目:intellij-ce-playground    文件:ExtensionDomExtender.java   
private static MultiMap<String, IdeaPlugin> getPluginMap(final Project project) {
  MultiMap<String, IdeaPlugin> byId = new LinkedMultiMap<String, IdeaPlugin>();
  for (IdeaPlugin each : IdeaPluginConverter.getAllPlugins(project)) {
    byId.putValue(each.getPluginId(), each);
  }
  return byId;
}
项目:tools-idea    文件:TestDataGuessByExistingFilesUtil.java   
private static synchronized MultiMap<String, Trinity<Matcher, String, String>> getAllFileNames(List<Trinity<Matcher, String, String>> input,
                                                                                               final GotoFileModel model) {
  LinkedMultiMap<String, Trinity<Matcher, String, String>> map = new LinkedMultiMap<String, Trinity<Matcher, String, String>>();
  for (String name : model.getNames(false)) {
    ProgressManager.checkCanceled();
    for (Trinity<Matcher, String, String> trinity : input) {
      if (trinity.first.matches(name)) {
        map.putValue(name, trinity);
      }
    }
  }
  return map;
}
项目:tools-idea    文件:ExtensionDomExtender.java   
private static MultiMap<String, IdeaPlugin> getPluginMap(final Project project) {
  MultiMap<String, IdeaPlugin> byId = new LinkedMultiMap<String, IdeaPlugin>();
  for (IdeaPlugin each : IdeaPluginConverter.getAllPlugins(project)) {
    byId.putValue(each.getPluginId(), each);
  }
  return byId;
}