create

abstract fun <V : Any> create(name: String, valueClass: Class<V>): PrepareKey<V>

Creates a PrepareKey instance for the specified name and value type. The created PrepareKey will handle preparation operations for keys with values of type V.

Return

a new PrepareKey instance configured for the specified parameters

Parameters

name

the name identifier for this PrepareKey (used for naming and configuration)

valueClass

the Java class representing the value type V

Type Parameters

V

the type of values that will be prepared with the keys

Samples