// Generated from "overwrittentypevariables/HashFunctions.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 overwrittentypevariables

import javaemul.lang.*
import kotlin.Enum
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmStatic

fun interface MyFunction<F, T> {
 fun apply(input: F): T
}

fun interface HashFunction<T>: MyFunction<T, String?>

open class HashFunctions {
 companion object {
  @JvmStatic
  fun <T> hashFunction(): HashFunction<T>? {
   return object : HashFunction<T> {
    override fun apply(input: T): String? {
     return ""
    }
   }
  }

  @JvmStatic
  fun <T: Enum<T>> enumHashFunction(): HashFunction<T>? {
   return object : HashFunction<T> {
    override fun apply(input: T): String? {
     return "" + input!!.ordinal
    }
   }
  }
 }
}
