本文整理汇总了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);
}
示例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;
}
});
}
示例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();
}
});
}
示例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);
}
});
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
});
}