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

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

There is a newer version: 3.10.0-rc4
Show newest version


package com.google.gerrit.server.notedb;

import com.google.gerrit.common.Nullable;
import com.google.gerrit.reviewdb.client.Account;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeBundle_ChangeMessageCandidate extends ChangeBundle.ChangeMessageCandidate {

  private final Account.Id author;

  private final String message;

  private final String tag;

  AutoValue_ChangeBundle_ChangeMessageCandidate(
      @Nullable Account.Id author,
      @Nullable String message,
      @Nullable String tag) {
    this.author = author;
    this.message = message;
    this.tag = tag;
  }

  @Nullable
  @Override
  Account.Id author() {
    return author;
  }

  @Nullable
  @Override
  String message() {
    return message;
  }

  @Nullable
  @Override
  String tag() {
    return tag;
  }

  @Override
  public String toString() {
    return "ChangeMessageCandidate{"
         + "author=" + author + ", "
         + "message=" + message + ", "
         + "tag=" + tag
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeBundle.ChangeMessageCandidate) {
      ChangeBundle.ChangeMessageCandidate that = (ChangeBundle.ChangeMessageCandidate) o;
      return ((this.author == null) ? (that.author() == null) : this.author.equals(that.author()))
           && ((this.message == null) ? (that.message() == null) : this.message.equals(that.message()))
           && ((this.tag == null) ? (that.tag() == null) : this.tag.equals(that.tag()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (author == null) ? 0 : author.hashCode();
    h$ *= 1000003;
    h$ ^= (message == null) ? 0 : message.hashCode();
    h$ *= 1000003;
    h$ ^= (tag == null) ? 0 : tag.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy