当前位置: 首页>>代码示例>>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;未经允许,请勿转载。