本文整理匯總了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;
}
});
}