Emails.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:gerrit 作者:
/**
 * 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号