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

com.google.errorprone.bugpatterns.inlineme.AutoValue_InlineMeData Maven / Gradle / Ivy

There is a newer version: 2.28.0
Show newest version
package com.google.errorprone.bugpatterns.inlineme;

import com.google.common.collect.ImmutableSet;
import javax.annotation.Generated;

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

  private final String replacement;

  private final ImmutableSet imports;

  private final ImmutableSet staticImports;

  AutoValue_InlineMeData(
      String replacement,
      ImmutableSet imports,
      ImmutableSet staticImports) {
    if (replacement == null) {
      throw new NullPointerException("Null replacement");
    }
    this.replacement = replacement;
    if (imports == null) {
      throw new NullPointerException("Null imports");
    }
    this.imports = imports;
    if (staticImports == null) {
      throw new NullPointerException("Null staticImports");
    }
    this.staticImports = staticImports;
  }

  @Override
  String replacement() {
    return replacement;
  }

  @Override
  ImmutableSet imports() {
    return imports;
  }

  @Override
  ImmutableSet staticImports() {
    return staticImports;
  }

  @Override
  public String toString() {
    return "InlineMeData{"
         + "replacement=" + replacement + ", "
         + "imports=" + imports + ", "
         + "staticImports=" + staticImports
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof InlineMeData) {
      InlineMeData that = (InlineMeData) o;
      return this.replacement.equals(that.replacement())
          && this.imports.equals(that.imports())
          && this.staticImports.equals(that.staticImports());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= replacement.hashCode();
    h$ *= 1000003;
    h$ ^= imports.hashCode();
    h$ *= 1000003;
    h$ ^= staticImports.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy