本文整理匯總了Java中com.intellij.util.containers.ContainerUtil.concatIterators方法的典型用法代碼示例。如果您正苦於以下問題:Java ContainerUtil.concatIterators方法的具體用法?Java ContainerUtil.concatIterators怎麽用?Java ContainerUtil.concatIterators使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.intellij.util.containers.ContainerUtil
的用法示例。
在下文中一共展示了ContainerUtil.concatIterators方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getAllChanges
import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
public Iterator<Change> getAllChanges() {
return ContainerUtil.concatIterators(myBaseToLeftChangeList.getChanges().iterator(), myBaseToRightChangeList.getChanges().iterator());
}
示例2: VcsDirtyScopeImpl
import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
public VcsDirtyScopeImpl(final AbstractVcs vcs, final Project project) {
myProject = project;
myVcs = vcs;
myVcsManager = ProjectLevelVcsManager.getInstance(project);
myWasEverythingDirty = false;
myVcsDirtyScopeModifier = new VcsDirtyScopeModifier() {
@Override
public Collection<VirtualFile> getAffectedVcsRoots() {
return Collections.unmodifiableCollection(myDirtyDirectoriesRecursively.keySet());
}
@Override
public Iterator<FilePath> getDirtyFilesIterator() {
if (myDirtyFiles.isEmpty()) {
return Collections.<FilePath>emptyList().iterator();
}
final ArrayList<Iterator<FilePath>> iteratorList = new ArrayList<Iterator<FilePath>>(myDirtyFiles.size());
for (THashSet<FilePath> paths : myDirtyFiles.values()) {
iteratorList.add(paths.iterator());
}
return ContainerUtil.concatIterators(iteratorList);
}
@NotNull
@Override
public Iterator<FilePath> getDirtyDirectoriesIterator(final VirtualFile root) {
final THashSet<FilePath> filePaths = myDirtyDirectoriesRecursively.get(root);
if (filePaths != null) {
return filePaths.iterator();
}
return ContainerUtil.emptyIterator();
}
@Override
public void recheckDirtyKeys() {
recheckMap(myDirtyDirectoriesRecursively);
recheckMap(myDirtyFiles);
}
private void recheckMap(Map<VirtualFile, THashSet<FilePath>> map) {
for (Iterator<THashSet<FilePath>> iterator = map.values().iterator(); iterator.hasNext();) {
final THashSet<FilePath> next = iterator.next();
if (next.isEmpty()) {
iterator.remove();
}
}
}
};
}
示例3: getMatchingIterator
import com.intellij.util.containers.ContainerUtil; //導入方法依賴的package包/類
private Iterator<Integer> getMatchingIterator(final String line, final int originalStart, final int maxWalkFromBinding) {
return ContainerUtil.concatIterators(new WalkingIterator(line, originalStart, maxWalkFromBinding, true),
new WalkingIterator(line, originalStart, maxWalkFromBinding, false));
}