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

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

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

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

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

  private final UExpression methodSelect;

  private final ImmutableList arguments;

  AutoValue_UMethodInvocation(
      UExpression methodSelect,
      ImmutableList arguments) {
    if (methodSelect == null) {
      throw new NullPointerException("Null methodSelect");
    }
    this.methodSelect = methodSelect;
    if (arguments == null) {
      throw new NullPointerException("Null arguments");
    }
    this.arguments = arguments;
  }

  @Override
  public UExpression getMethodSelect() {
    return methodSelect;
  }

  @Override
  public ImmutableList getArguments() {
    return arguments;
  }

  @Override
  public String toString() {
    return "UMethodInvocation{"
        + "methodSelect=" + methodSelect + ", "
        + "arguments=" + arguments
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UMethodInvocation) {
      UMethodInvocation that = (UMethodInvocation) o;
      return this.methodSelect.equals(that.getMethodSelect())
          && this.arguments.equals(that.getArguments());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy