當前位置: 首頁>>代碼示例>>Java>>正文


Java ContainerUtil.and方法代碼示例

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


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

示例1: matchesAllFilters

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
private boolean matchesAllFilters(@NotNull final VcsCommitMetadata commit,
                                  @NotNull final PermanentGraph<Integer> permanentGraph,
                                  @NotNull List<VcsLogDetailsFilter> detailsFilters,
                                  @Nullable final Set<Integer> matchingHeads) {
  boolean matchesAllDetails = ContainerUtil.and(detailsFilters, new Condition<VcsLogDetailsFilter>() {
    @Override
    public boolean value(VcsLogDetailsFilter filter) {
      return filter.matches(commit);
    }
  });
  return matchesAllDetails && matchesAnyHead(permanentGraph, commit, matchingHeads);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:13,代碼來源:VisiblePackBuilder.java

示例2: hasOnlyPhysicalPsiDependencies

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
private static boolean hasOnlyPhysicalPsiDependencies(@Nullable Object[] dependencies) {
  return dependencies != null && dependencies.length > 0 && ContainerUtil.and(dependencies, new Condition<Object>() {
    @Override
    public boolean value(Object o) {
      return o instanceof PsiElement && ((PsiElement)o).isValid() && ((PsiElement)o).isPhysical() ||
             o instanceof ProjectRootModificationTracker ||
             o instanceof PsiModificationTracker ||
             o == PsiModificationTracker.MODIFICATION_COUNT ||
             o == PsiModificationTracker.OUT_OF_CODE_BLOCK_MODIFICATION_COUNT ||
             o == PsiModificationTracker.OUT_OF_CODE_BLOCK_MODIFICATION_COUNT ||
             o == PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT;
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:15,代碼來源:PsiCachedValue.java

示例3: isSyncStrategiesAllowed

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
private boolean isSyncStrategiesAllowed() {
  return !mySingleRepoProject &&
         ContainerUtil.and(getAffectedSupports(), new Condition<PushSupport<Repository, PushSource, PushTarget>>() {
           @Override
           public boolean value(PushSupport<Repository, PushSource, PushTarget> support) {
             return support.mayChangeTargetsSync();
           }
         });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:10,代碼來源:PushController.java

示例4: isVisible

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
protected boolean isVisible(@NotNull final Project project, @NotNull MultiMap<Repo, VcsFullCommitDetails> grouped) {
  return ContainerUtil.and(grouped.keySet(), new Condition<Repo>() {
    @Override
    public boolean value(Repo repo) {
      RepositoryManager<Repo> manager = getRepositoryManager(project);
      return !manager.isExternal(repo);
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:10,代碼來源:VcsLogAction.java

示例5: isInspectionCompleted

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
protected boolean isInspectionCompleted() {
  return ContainerUtil.and(myDomElements, new Condition<DomElement>() {
    @Override
    public boolean value(final DomElement element) {
      return myAnnotationsManager.getHighlightStatus(element) == DomHighlightStatus.INSPECTIONS_FINISHED;
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:9,代碼來源:DomElementsErrorPanel.java

示例6: isErrorAnalyzingFinished

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
protected boolean isErrorAnalyzingFinished() {
  return ContainerUtil.and(myDomElements, new Condition<DomElement>() {
    @Override
    public boolean value(final DomElement element) {
      return myAnnotationsManager.getHighlightStatus(element).compareTo(DomHighlightStatus.ANNOTATORS_FINISHED) >= 0;
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:9,代碼來源:DomElementsErrorPanel.java

示例7: branchInAllRepositories

import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
private static boolean branchInAllRepositories(@NotNull List<GitRepository> repositories, @NotNull final VcsRef branches) {
  return ContainerUtil.and(repositories, new Condition<GitRepository>() {
    @Override
    public boolean value(GitRepository repository) {
      return repository.getBranches().findBranchByName(branches.getName()) != null;
    }
  });
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:9,代碼來源:GitLogBranchOperationsActionGroup.java


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