create
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
val factory = MyPrepareKeyFactory()
val usernameKey = factory.create("username", String::class.java)
val emailKey = factory.create("email", String::class.java)Content copied to clipboard
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