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

com.google.gerrit.extensions.validators.AutoValue_CommentValidationContext Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.extensions.validators;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CommentValidationContext extends CommentValidationContext {

  private final int changeId;

  private final String project;

  AutoValue_CommentValidationContext(
      int changeId,
      String project) {
    this.changeId = changeId;
    if (project == null) {
      throw new NullPointerException("Null project");
    }
    this.project = project;
  }

  @Override
  public int getChangeId() {
    return changeId;
  }

  @Override
  public String getProject() {
    return project;
  }

  @Override
  public String toString() {
    return "CommentValidationContext{"
        + "changeId=" + changeId + ", "
        + "project=" + project
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommentValidationContext) {
      CommentValidationContext that = (CommentValidationContext) o;
      return this.changeId == that.getChangeId()
          && this.project.equals(that.getProject());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy