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

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

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

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_IsInstanceOfClass_Operand extends IsInstanceOfClass.Operand {

  private final IsInstanceOfClass.Kind kind;

  private final CharSequence value;

  private final CharSequence source;

  AutoValue_IsInstanceOfClass_Operand(
      IsInstanceOfClass.Kind kind,
      CharSequence value,
      CharSequence source) {
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
    if (source == null) {
      throw new NullPointerException("Null source");
    }
    this.source = source;
  }

  @Override
  IsInstanceOfClass.Kind kind() {
    return kind;
  }

  @Override
  CharSequence value() {
    return value;
  }

  @Override
  CharSequence source() {
    return source;
  }

  @Override
  public String toString() {
    return "Operand{"
         + "kind=" + kind + ", "
         + "value=" + value + ", "
         + "source=" + source
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IsInstanceOfClass.Operand) {
      IsInstanceOfClass.Operand that = (IsInstanceOfClass.Operand) o;
      return this.kind.equals(that.kind())
          && this.value.equals(that.value())
          && this.source.equals(that.source());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= kind.hashCode();
    h$ *= 1000003;
    h$ ^= value.hashCode();
    h$ *= 1000003;
    h$ ^= source.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy