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

com.google.gerrit.entities.AutoValue_CommentContext Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableMap;
import javax.annotation.processing.Generated;

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

  private final ImmutableMap lines;

  private final String contentType;

  AutoValue_CommentContext(
      ImmutableMap lines,
      String contentType) {
    if (lines == null) {
      throw new NullPointerException("Null lines");
    }
    this.lines = lines;
    if (contentType == null) {
      throw new NullPointerException("Null contentType");
    }
    this.contentType = contentType;
  }

  @Override
  public ImmutableMap lines() {
    return lines;
  }

  @Override
  public String contentType() {
    return contentType;
  }

  @Override
  public String toString() {
    return "CommentContext{"
        + "lines=" + lines + ", "
        + "contentType=" + contentType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CommentContext) {
      CommentContext that = (CommentContext) o;
      return this.lines.equals(that.lines())
          && this.contentType.equals(that.contentType());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy