getDataType

inline fun <T : Any> getDataType(clazz: KClass<T>): PersistentDataType<T, T>

Returns the PersistentDataType corresponding to the given Kotlin KClass.

Supports the following types: String, Int, Double, Float, Long, Byte, Short, Boolean, ByteArray, IntArray, and LongArray.

Return

the matching PersistentDataType

Parameters

clazz

the Kotlin class to look up

Throws

if the type is not supported