/**
* Returns the accounts for the given emails.
*
* @see #getAccountFor(String)
*/
public ImmutableSetMultimap<String, Account.Id> getAccountsFor(String... emails)
throws IOException, OrmException {
ImmutableSetMultimap.Builder<String, Account.Id> builder = ImmutableSetMultimap.builder();
externalIds
.byEmails(emails)
.entries()
.stream()
.forEach(e -> builder.put(e.getKey(), e.getValue().accountId()));
queryProvider
.get()
.byPreferredEmail(emails)
.entries()
.stream()
.forEach(e -> builder.put(e.getKey(), e.getValue().getAccount().getId()));
return builder.build();
}
Emails.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:gerrit
作者:
评论列表
文章目录