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

com.google.errorprone.bugpatterns.AutoValue_MissingTestCall_MethodPairing Maven / Gradle / Ivy

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

import com.google.errorprone.matchers.Matcher;
import com.sun.source.tree.ExpressionTree;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MissingTestCall_MethodPairing extends MissingTestCall.MethodPairing {

  private final String name;

  private final Matcher ifCall;

  private final Matcher mustCall;

  AutoValue_MissingTestCall_MethodPairing(
      String name,
      Matcher ifCall,
      Matcher mustCall) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (ifCall == null) {
      throw new NullPointerException("Null ifCall");
    }
    this.ifCall = ifCall;
    if (mustCall == null) {
      throw new NullPointerException("Null mustCall");
    }
    this.mustCall = mustCall;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  Matcher ifCall() {
    return ifCall;
  }

  @Override
  Matcher mustCall() {
    return mustCall;
  }

  @Override
  public String toString() {
    return "MethodPairing{"
         + "name=" + name + ", "
         + "ifCall=" + ifCall + ", "
         + "mustCall=" + mustCall
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MissingTestCall.MethodPairing) {
      MissingTestCall.MethodPairing that = (MissingTestCall.MethodPairing) o;
      return this.name.equals(that.name())
          && this.ifCall.equals(that.ifCall())
          && this.mustCall.equals(that.mustCall());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy