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

com.google.gerrit.server.notedb.AutoValue_ChangeDraftUpdate_Key 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.reviewdb.client.Comment;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ChangeDraftUpdate_Key extends ChangeDraftUpdate.Key {

  private final String revId;

  private final Comment.Key key;

  AutoValue_ChangeDraftUpdate_Key(
      String revId,
      Comment.Key key) {
    if (revId == null) {
      throw new NullPointerException("Null revId");
    }
    this.revId = revId;
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
  }

  @Override
  String revId() {
    return revId;
  }

  @Override
  Comment.Key key() {
    return key;
  }

  @Override
  public String toString() {
    return "Key{"
         + "revId=" + revId + ", "
         + "key=" + key
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ChangeDraftUpdate.Key) {
      ChangeDraftUpdate.Key that = (ChangeDraftUpdate.Key) o;
      return (this.revId.equals(that.revId()))
           && (this.key.equals(that.key()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy