// Generated from "autovalue/AutoValue_AutoValueJsType.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.AutoValueJsType
import jsinterop.annotations.JsMethod
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

class AutoValue_AutoValueJsType: AutoValueJsType {
 private val field: Int

 private val withJsMethod: Int

 internal constructor(field: Int, withJsMethod: Int) {
  this.field = field
  this.withJsMethod = withJsMethod
 }

 override fun getField(): Int {
  return this.field
 }

 @JsMethod(name = "getField2")
 override fun getWithJsMethod_pp_autovalue(): Int {
  return this.withJsMethod
 }

 override fun toString(): String {
  return "AutoValueJsType{" + "field=" + this.field + ", " + "withJsMethod=" + this.withJsMethod + "}"
 }

 override fun equals(o: Any?): Boolean {
  if (o === this) {
   return true
  }
  if (o is AutoValueJsType) {
   val that: AutoValueJsType? = o as AutoValueJsType?
   return this.field == that!!.getField() && this.withJsMethod == that!!.getWithJsMethod_pp_autovalue()
  }
  return false
 }

 override fun hashCode(): Int {
  var h___: Int = 1
  h___ = h___ * 1000003
  h___ = h___.xor(
   this.field,
  )
  h___ = h___ * 1000003
  h___ = h___.xor(
   this.withJsMethod,
  )
  return h___
 }
}
