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.10.0-rc7
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;

  private final String refName;

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

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

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

  @Override
  public String getRefName() {
    return refName;
  }

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

  @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())
          && this.refName.equals(that.getRefName());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy