Java Code Examples for com.intellij.util.SmartList#addAll()
The following examples show how to use
com.intellij.util.SmartList#addAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TryStatementObject.java From IntelliJDeodorant with MIT License | 5 votes |
public List<AbstractExpression> getExpressions() { SmartList<AbstractExpression> expressions = new SmartList<>(super.getExpressions()); for (CatchClauseObject catchClause : catchClauses) { expressions.addAll(catchClause.getExpressions()); } return expressions; }
Example 2
Source File: TryStatementObject.java From IntelliJDeodorant with MIT License | 5 votes |
public List<TryStatementObject> getTryStatements() { SmartList<TryStatementObject> tryStatements = new SmartList<>(super.getTryStatements()); for (CatchClauseObject catchClause : catchClauses) { tryStatements.addAll(catchClause.getTryStatements()); } if (finallyClause != null) { tryStatements.addAll(finallyClause.getTryStatements()); } return tryStatements; }
Example 3
Source File: CompressedRefs.java From consulo with Apache License 2.0 | 5 votes |
@Nonnull SmartList<VcsRef> refsToCommit(int index) { SmartList<VcsRef> result = new SmartList<>(); if (myBranches.containsKey(index)) result.addAll(myBranches.get(index)); TIntArrayList tags = myTags.get(index); if (tags != null) { tags.forEach(value -> { result.add(myHashMap.getVcsRef(value)); return true; }); } return result; }
Example 4
Source File: CheckinHandlersManagerImpl.java From consulo with Apache License 2.0 | 5 votes |
@Override public List<VcsCheckinHandlerFactory> getMatchingVcsFactories(@Nonnull List<AbstractVcs> vcsList) { final SmartList<VcsCheckinHandlerFactory> result = new SmartList<>(); for (AbstractVcs vcs : vcsList) { final Collection<VcsCheckinHandlerFactory> factories = myVcsMap.get(vcs.getKeyInstanceMethod()); if (!factories.isEmpty()) { result.addAll(factories); } } return result; }