日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java版本的getorcreate_Java ContainerUtil.getOrCreate方法代碼示例

發布時間:2025/3/21 java 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java版本的getorcreate_Java ContainerUtil.getOrCreate方法代碼示例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

本文整理匯總了Java中com.intellij.util.containers.ContainerUtil.getOrCreate方法的典型用法代碼示例。如果您正苦於以下問題:Java ContainerUtil.getOrCreate方法的具體用法?Java ContainerUtil.getOrCreate怎麼用?Java ContainerUtil.getOrCreate使用的例子?那麼恭喜您, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.intellij.util.containers.ContainerUtil的用法示例。

在下文中一共展示了ContainerUtil.getOrCreate方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於我們的係統推薦出更棒的Java代碼示例。

示例1: increment

?點讚 3

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

public synchronized void increment(@NotNull String groupName,

@NotNull NotificationSource source,

@NotNull NotificationCategory category,

@NotNull ProjectSystemId projectSystemId) {

final TObjectIntHashMap counter =

ContainerUtil.getOrCreate(

ContainerUtil.getOrCreate(

ContainerUtil.getOrCreate(

map,

projectSystemId,

ContainerUtil.>>newHashMap()),

groupName,

ContainerUtil.>newHashMap()

),

source,

new MyTObjectIntHashMap()

);

if (!counter.increment(category)) counter.put(category, 1);

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:21,

示例2: remove

?點讚 3

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

public synchronized void remove(@Nullable final String groupName,

@NotNull final NotificationSource notificationSource,

@NotNull final ProjectSystemId projectSystemId) {

final Map>> groupMap =

ContainerUtil.getOrCreate(

map,

projectSystemId,

ContainerUtil.>>newHashMap());

if (groupName != null) {

final TObjectIntHashMap counter = ContainerUtil.getOrCreate(

ContainerUtil.getOrCreate(

groupMap,

groupName,

ContainerUtil.>newHashMap()

),

notificationSource,

new MyTObjectIntHashMap()

);

counter.clear();

}

else {

for (Map> sourceMap : groupMap.values()) {

sourceMap.remove(notificationSource);

}

}

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:27,

示例3: getState

?點讚 3

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

public Map> getState() {

final Map> result = ContainerUtil.newHashMap();

Consumer consumer = new Consumer() {

@Override

public void consume(PostfixTemplateCheckedTreeNode template) {

if (!template.isChecked()) {

Set templatesForLanguage =

ContainerUtil.getOrCreate(result, template.getLang(), PostfixTemplatesSettings.SET_FACTORY);

templatesForLanguage.add(template.getTemplate().getKey());

}

}

};

visit(consumer);

return result;

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:17,

示例4: checkList

?點讚 3

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

@NotNull

public SvnMergeInfoCache.MergeCheckResult checkList(@NotNull final SvnChangeList list, final String branchPath) {

synchronized (myCalculatedLock) {

SvnMergeInfoCache.MergeCheckResult result;

final long revision = calculateCopyRevision(branchPath);

if (revision != -1 && revision >= list.getNumber()) {

result = SvnMergeInfoCache.MergeCheckResult.COMMON;

}

else {

result = ContainerUtil.getOrCreate(myAlreadyCalculatedMap, list.getNumber(), new Factory() {

@Override

public SvnMergeInfoCache.MergeCheckResult create() {

return checkAlive(list, branchPath);

}

});

}

return result;

}

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:20,

示例5: createFileProvider

?點讚 2

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

@NotNull

private static ISVNStatusFileProvider createFileProvider(@NotNull Map nonRecursiveMap) {

final Map> result = ContainerUtil.newHashMap();

for (SvnScopeZipper.MyDirNonRecursive item : nonRecursiveMap.values()) {

File file = item.getDir().getIOFile();

Map fileMap = ContainerUtil.getOrCreate(result, file.getAbsolutePath(), NAME_TO_FILE_MAP_FACTORY);

for (FilePath path : item.getChildrenList()) {

fileMap.put(path.getName(), path.getIOFile());

}

// also add currently processed file to the map of its parent, as there are cases when SVNKit calls ISVNStatusFileProvider with file

// parent (and not file that was passed to doStatus()), gets null result and does not provide any status

// see http://issues.tmatesoft.com/issue/SVNKIT-567 for details

if (file.getParentFile() != null) {

Map parentMap = ContainerUtil.getOrCreate(result, file.getParentFile().getAbsolutePath(), NAME_TO_FILE_MAP_FACTORY);

parentMap.put(file.getName(), file);

}

}

return new ISVNStatusFileProvider() {

@Override

public Map getChildrenFiles(File parent) {

return result.get(parent.getAbsolutePath());

}

};

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:30,

示例6: getChildren

?點讚 2

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

@NotNull

@Override

public Collection extends AbstractTreeNode> getChildren() {

final ServerConnection> connection = getConnection();

if (connection == null) {

return Collections.emptyList();

}

Map group2node = new HashMap();

final List children = new ArrayList();

for (Deployment deployment : connection.getDeployments()) {

final String groupName = deployment.getGroup();

if (groupName == null) {

children.add(new DeploymentNodeImpl(connection, this, deployment));

}

else {

Map groups

= ContainerUtil.getOrCreate(myServer2DeploymentGroups, getServer(), new Factory>() {

@Override

public Map create() {

return new HashMap();

}

});

final DeploymentGroup group

= ContainerUtil.getOrCreate(groups, groupName, new Factory() {

@Override

public DeploymentGroup create() {

return new DeploymentGroup(groupName);

}

});

ContainerUtil.getOrCreate(group2node, group, new Factory() {

@Override

public GroupNode create() {

GroupNode result = new GroupNode(connection, RemoteServerNode.this, group);

children.add(result);

return result;

}

});

}

}

return children;

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:45,

示例7: disableTemplate

?點讚 2

?

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類

public void disableTemplate(PostfixTemplate template, String langForProvider) {

Set state = ContainerUtil.getOrCreate(myLangToDisabledTemplates, langForProvider, SET_FACTORY);

state.add(template.getKey());

}

開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,

注:本文中的com.intellij.util.containers.ContainerUtil.getOrCreate方法示例整理自Github/MSDocs等源碼及文檔管理平臺,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。

總結

以上是生活随笔為你收集整理的java版本的getorcreate_Java ContainerUtil.getOrCreate方法代碼示例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 亚洲视频精品 | 久久久久久久久久久97 | 久久久久午夜 | 狠狠干婷婷 | 国产精品免费视频一区二区三区 | a级片在线观看 | 亚洲国产亚洲 | 国产精品视频一区二区三区不卡 | 蜜桃av噜噜一区二区三区麻豆 | 黄色仓库av | 国产亚洲精品久久久 | 欧美视频亚洲 | 午夜在线观看av | 黄色片网站国产 | 天堂av免费在线观看 | 99国产精品久久久久久久 | 亚洲免费精品视频在线观看 | 中国性老太hd大全69 | 欧美 国产 精品 | 国产又爽又黄免费视频 | 黄色a视频 | 国产欧美一区二区三区在线看蜜臀 | 桃谷绘里香在线观看 | 不用播放器av | 怡红院毛片| 痴汉电车在线观看 | 欧美日本不卡 | 成人免费xxxxx在线视频 | 午夜一区二区三区 | www.成人在线视频 | 麻豆影视在线 | 丁香六月欧美 | 欧美成人aaaa | 麻豆视频免费版 | 欧美福利第一页 | 国产精品黑人一区二区三区 | 污视频免费看 | 芒果视频在线观看免费 | 亚洲大乳 | 四虎影院在线观看免费 | 国产精品国产精品 | 免费在线黄网站 | 亚洲欧美国产一区二区三区 | 国产一卡二卡在线 | 欧美一区二区三区公司 | 中文字幕日韩三级 | 久久精品国产亚洲av香蕉 | 国产福利精品一区 | 日韩中文字幕在线观看 | 国产福利在线播放 | 亚洲一区中文字幕在线 | 无码专区久久综合久中文字幕 | 91黄色视屏 | 涩涩网址 | 疯狂做受xxxx高潮人妖 | 黄色a免费 | av观看在线免费 | 成人欧美一区二区三区黑人冫 | 日本在线免费视频 | 国产香蕉视频在线播放 | 久久久久久黄色 | 亚洲 高清 成人 动漫 | 国产www在线观看 | 波多野结衣黄色 | 理论在线视频 | 亚洲午夜久久久久久久久红桃 | 国产999久久久 | 国产精品毛片一区二区 | 欧美一区二区三区免费观看 | 精品国产aⅴ一区二区三区四川人 | ass日本寡妇pics | 欧美精品久久久久性色 | 韩日激情视频 | videos另类灌满极品另类 | 久久精品一区二区在线观看 | 国产在线黄 | 欧美精品一区二区免费 | 屁屁影院国产第一页 | 亚洲小视频在线播放 | 亚洲精品久久久久久久蜜桃臀 | 一本到在线 | 涩涩涩综合| 亚洲色图一区二区三区 | 朝桐光av在线一区二区三区 | 国产美女视频一区二区 | 国产精品久久久久久免费免熟 | 久热国产视频 | 中文字幕一区二区在线视频 | 中文字幕一级二级三级 | 成人精品综合 | 免费福利视频网站 | 国产伦精品一区二区三区四区 | 日日夜夜亚洲 | 欧美日韩中文字幕 | 色综合激情 | 99热思思| 青青草国内自拍 | 亚洲另类在线观看 | 国产精品毛片一区二区 |