of

fun <T> of(type: Type): KeyType<T>

Build a KeyType wrapping the given type.

Return

a corresponding reference which may be passed into KeyType-accepting methods

Since

4.3.12

Parameters

type

a generic type (possibly obtained via reflection, e.g. from java.lang.reflect.Method.getGenericReturnType)


inline fun <T> of(): KeyType<T>