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

com.google.errorprone.refaster.AutoValue_RefasterRule Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableClassToInstanceMap;
import com.google.common.collect.ImmutableList;
import java.lang.annotation.Annotation;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RefasterRule> extends RefasterRule {

  private final String qualifiedTemplateClass;

  private final ImmutableList typeVariables;

  private final ImmutableList beforeTemplates;

  private final ImmutableList afterTemplates;

  private final ImmutableClassToInstanceMap annotations;

  AutoValue_RefasterRule(
      String qualifiedTemplateClass,
      ImmutableList typeVariables,
      ImmutableList beforeTemplates,
      ImmutableList afterTemplates,
      ImmutableClassToInstanceMap annotations) {
    if (qualifiedTemplateClass == null) {
      throw new NullPointerException("Null qualifiedTemplateClass");
    }
    this.qualifiedTemplateClass = qualifiedTemplateClass;
    if (typeVariables == null) {
      throw new NullPointerException("Null typeVariables");
    }
    this.typeVariables = typeVariables;
    if (beforeTemplates == null) {
      throw new NullPointerException("Null beforeTemplates");
    }
    this.beforeTemplates = beforeTemplates;
    if (afterTemplates == null) {
      throw new NullPointerException("Null afterTemplates");
    }
    this.afterTemplates = afterTemplates;
    if (annotations == null) {
      throw new NullPointerException("Null annotations");
    }
    this.annotations = annotations;
  }

  @Override
  String qualifiedTemplateClass() {
    return qualifiedTemplateClass;
  }

  @Override
  ImmutableList typeVariables() {
    return typeVariables;
  }

  @Override
  ImmutableList beforeTemplates() {
    return beforeTemplates;
  }

  @Override
  ImmutableList afterTemplates() {
    return afterTemplates;
  }

  @Override
  public ImmutableClassToInstanceMap annotations() {
    return annotations;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RefasterRule) {
      RefasterRule that = (RefasterRule) o;
      return this.qualifiedTemplateClass.equals(that.qualifiedTemplateClass())
          && this.typeVariables.equals(that.typeVariables())
          && this.beforeTemplates.equals(that.beforeTemplates())
          && this.afterTemplates.equals(that.afterTemplates())
          && this.annotations.equals(that.annotations());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= qualifiedTemplateClass.hashCode();
    h$ *= 1000003;
    h$ ^= typeVariables.hashCode();
    h$ *= 1000003;
    h$ ^= beforeTemplates.hashCode();
    h$ *= 1000003;
    h$ ^= afterTemplates.hashCode();
    h$ *= 1000003;
    h$ ^= annotations.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy