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

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

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

import javax.annotation.Generated;

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

  private final CommentForValidation.CommentType type;

  private final String text;

  AutoValue_CommentForValidation(
      CommentForValidation.CommentType type,
      String text) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (text == null) {
      throw new NullPointerException("Null text");
    }
    this.text = text;
  }

  @Override
  public CommentForValidation.CommentType getType() {
    return type;
  }

  @Override
  public String getText() {
    return text;
  }

  @Override
  public String toString() {
    return "CommentForValidation{"
         + "type=" + type + ", "
         + "text=" + text
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommentForValidation) {
      CommentForValidation that = (CommentForValidation) o;
      return this.type.equals(that.getType())
          && this.text.equals(that.getText());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy