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

com.google.errorprone.bugpatterns.javadoc.AutoValue_JavadocTag Maven / Gradle / Ivy

There is a newer version: 2.27.1
Show newest version
package com.google.errorprone.bugpatterns.javadoc;

import javax.annotation.Generated;

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

  private final String name;

  private final JavadocTag.TagType type;

  AutoValue_JavadocTag(
      String name,
      JavadocTag.TagType type) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  JavadocTag.TagType type() {
    return type;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof JavadocTag) {
      JavadocTag that = (JavadocTag) o;
      return this.name.equals(that.name())
          && this.type.equals(that.type());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy