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

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

The newest version!
package com.google.gerrit.extensions.validators;

import javax.annotation.processing.Generated;

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

  private final CommentForValidation comment;

  private final String message;

  AutoValue_CommentValidationFailure(
      CommentForValidation comment,
      String message) {
    if (comment == null) {
      throw new NullPointerException("Null comment");
    }
    this.comment = comment;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
  }

  @Override
  public CommentForValidation getComment() {
    return comment;
  }

  @Override
  public String getMessage() {
    return message;
  }

  @Override
  public String toString() {
    return "CommentValidationFailure{"
        + "comment=" + comment + ", "
        + "message=" + message
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommentValidationFailure) {
      CommentValidationFailure that = (CommentValidationFailure) o;
      return this.comment.equals(that.getComment())
          && this.message.equals(that.getMessage());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy