Skip to content

//tempest2/app.cash.tempest2/Codec

Codec

[jvm]\ interface Codec<A : Any, D : Any>

Converts values between the mutable DynamoDbBean objects that defines the union of all key and value attributes, and specific Tempest values.

It is the caller’s responsibility to check that the DynamoDbBean instance can be safely converted to the target type. If it cannot be, the behavior of this codec is undefined.

Functions

Name Summary
toApp [jvm]
abstract fun toApp(dbItem: D): A
toDb [jvm]
abstract fun toDb(appItem: A): D