// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.extensions.api.changes;

import java.util.List;

/** Detailed information about who should be notified about an update. */
public class NotifyInfo {
  public List<String> accounts;

  /**
   * @param accounts may be either just a list of: account IDs, Full names, usernames, or emails.
   *     Also could be a list of those: "Full name <email@example.com>" or "Full name (<ID>)"
   */
  public NotifyInfo(List<String> accounts) {
    this.accounts = accounts;
  }
}

@@ -664,22 +664,91 @@
 ort 
-java.util.List
+com.google.common.base.MoreObjects;%0Aimport java.util.List;%0Aimport java.util.Objects
 ;%0A%0A/
@@ -1128,16 +1128,16 @@
 unts) %7B%0A
-
     this
@@ -1161,11 +1161,426 @@
 nts;%0A  %7D
+%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (!(o instanceof NotifyInfo)) %7B%0A      return false;%0A    %7D%0A    NotifyInfo other = (NotifyInfo) o;%0A    return Objects.equals(other.accounts, accounts);%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return Objects.hash(accounts);%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return MoreObjects.toStringHelper(this).add(%22accounts%22, accounts).toString();%0A  %7D
 %0A%7D%0A

Add equals/hashCode/toString methods