All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.notedb.AutoValue_CommitRewriter_ParsedAccountInfo Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc7
Show newest version
package com.google.gerrit.server.notedb;

import java.util.Optional;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CommitRewriter_ParsedAccountInfo extends CommitRewriter.ParsedAccountInfo {

  private final String name;

  private final Optional email;

  AutoValue_CommitRewriter_ParsedAccountInfo(
      String name,
      Optional email) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (email == null) {
      throw new NullPointerException("Null email");
    }
    this.email = email;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  Optional email() {
    return email;
  }

  @Override
  public String toString() {
    return "ParsedAccountInfo{"
        + "name=" + name + ", "
        + "email=" + email
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommitRewriter.ParsedAccountInfo) {
      CommitRewriter.ParsedAccountInfo that = (CommitRewriter.ParsedAccountInfo) o;
      return this.name.equals(that.name())
          && this.email.equals(that.email());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= email.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy