getSerializable

inline fun <T : @Serializable Any> BoomerangStore.getSerializable(key: String): T?(source)

Extension function for BoomerangStore that retrieves and deserializes an object of type T with the specified key.

This function retrieves the boomerang with the given key and deserializes it using Kotlinx Serialization.

Return

The deserialized object of type T, or null if no value is found for the given key

Parameters

T

The type of serializable object to retrieve

key

The unique identifier for the stored value


inline fun <T : @Serializable Any> BoomerangStore.getSerializable(): T?(source)

Extension function for BoomerangStore that retrieves and deserializes an object of type T.

This function automatically uses the qualified name of type T as the key and retrieves the boomerang with that key, then deserializes it using Kotlinx Serialization.

Return

The deserialized object of type T, or null if no value is found for the type's qualified name

Parameters

T

The type of serializable object to retrieve


inline fun <T : @Serializable Any> Boomerang.getSerializable(key: String): T?(source)

Extension function for Boomerang that retrieves and deserializes an object of type T with the specified key.

This function retrieves the boomerang with the given key and deserializes it using Kotlinx Serialization.

Return

The deserialized object of type T, or null if no value is found for the given key

Parameters

T

The type of serializable object to retrieve

key

The unique identifier for the stored value