// Generated from "autovalue/AutoValue_ExtendingAutoValue.java"
@file:Suppress(
 "ALWAYS_NULL",
 "PARAMETER_NAME_CHANGED_ON_OVERRIDE",
 "SENSELESS_COMPARISON",
 "UNCHECKED_CAST",
 "UNNECESSARY_LATEINIT",
 "UNNECESSARY_NOT_NULL_ASSERTION",
 "UNREACHABLE_CODE",
 "UNUSED_ANONYMOUS_PARAMETER",
 "UNUSED_PARAMETER",
 "UNUSED_VARIABLE",
 "USELESS_CAST",
 "VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL",
 "VARIABLE_WITH_REDUNDANT_INITIALIZER",
 "REDUNDANT_ELSE_IN_WHEN")

package autovalue

import javaemul.lang.*
import autovalue.ExtendingAutoValue
import java.lang.NullPointerException
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

class AutoValue_ExtendingAutoValue: ExtendingAutoValue {
 private val baseField: Int

 private val booleanField: Boolean

 private val stringField: String?

 internal constructor(baseField: Int, booleanField: Boolean, stringField: String?) {
  this.baseField = baseField
  this.booleanField = booleanField
  if (stringField == null) {
   throw NullPointerException("Null stringField")
  }
  this.stringField = stringField
 }

 override fun getBaseField(): Int {
  return this.baseField
 }

 override fun getBooleanField(): Boolean {
  return this.booleanField
 }

 override fun getStringField(): String? {
  return this.stringField
 }

 override fun toString(): String {
  return "ExtendingAutoValue{" + "baseField=" + this.baseField + ", " + "booleanField=" + this.booleanField + ", " + "stringField=" + this.stringField + "}"
 }

 override fun equals(o: Any?): Boolean {
  if (o === this) {
   return true
  }
  if (o is ExtendingAutoValue) {
   val that: ExtendingAutoValue? = o as ExtendingAutoValue?
   return this.baseField == that!!.getBaseField() && this.booleanField == that!!.getBooleanField() && this.stringField!!.equals(
    that!!.getStringField(),
   )
  }
  return false
 }

 override fun hashCode(): Int {
  var h___: Int = 1
  h___ = h___ * 1000003
  h___ = h___.xor(
   this.baseField,
  )
  h___ = h___ * 1000003
  h___ = h___.xor(
   if (this.booleanField) 1231 else 1237,
  )
  h___ = h___ * 1000003
  h___ = h___.xor(
   this.stringField!!.hashCode(),
  )
  return h___
 }
}
