winter-java / io.jentz.winter.java / JWinter / key

key

@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.

Parameters

type - The return type.

qualifier - The optional qualifier.

Return
The type key.