@JvmStatic @JvmOverloads fun <R : Any> key(type: Class<R>, qualifier: Any? = null): TypeKey<R>
Creates a TypeKey with argument type Unit and return type R from a Java class.
type - The return type.
type
qualifier - The optional qualifier.
qualifier
Return The type key.